{"id":"GHSA-jcjx-c3j3-44pr","summary":"Insufficient Session Expiration in @cyyynthia/tokenize","details":"### Impact\nA bug introduced in version 1.1.0 made Tokenize generate faulty tokens with NaN as a generation date. As a result, tokens would not properly expire and remain valid regardless of the `lastTokenReset` field.\n\n### Patches\nVersion 1.1.3 contains a patch that'll invalidate these faulty tokens and make new ones behave as expected.\n\n### Workarounds\nNone. Tokens do not hold the necessary information to perform invalidation anymore.\n\n### References\nPR #1\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [github.com/cyyynthia/tokenize](https://github.com/cyyynthia/tokenize)\n* Email us at [cynthia@cynthia.dev](mailto:cynthia@cynthia.dev)\n","modified":"2021-11-08T21:09:02Z","published":"2021-11-10T16:44:12Z","database_specific":{"github_reviewed_at":"2021-11-08T21:09:02Z","nvd_published_at":null,"cwe_ids":["CWE-613"],"severity":"HIGH","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/cyyynthia/tokenize/security/advisories/GHSA-jcjx-c3j3-44pr"},{"type":"PACKAGE","url":"https://github.com/cyyynthia/tokenize"}],"affected":[{"package":{"name":"@cyyynthia/tokenize","ecosystem":"npm","purl":"pkg:npm/%40cyyynthia/tokenize"},"ranges":[{"type":"SEMVER","events":[{"introduced":"1.1.0"},{"fixed":"1.1.3"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/11/GHSA-jcjx-c3j3-44pr/GHSA-jcjx-c3j3-44pr.json"}}],"schema_version":"1.9.0"}