{"id":"GHSA-jcjx-c3j3-44pr","aliases":["GHSA-jcjx-c3j3-44pr"],"related":[],"kind":"vulnerability","state":"published","title":"Insufficient Session Expiration in @cyyynthia/tokenize","summary":"### 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)","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"### 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)","format":"markdown","source":"ghsa"}],"published":"2021-11-10T16:44:12.000Z","modified":"2021-11-08T21:09:02.000Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-613"],"affected":[{"ranges":[{"type":"semver","introduced":"1.1.0","status":"affected","fixed":"1.1.3"}],"ecosystem":"npm","package":"@cyyynthia/tokenize","purl":"pkg:npm/%40cyyynthia/tokenize","source":"ghsa"}],"references":[{"url":"https://github.com/cyyynthia/tokenize/security/advisories/GHSA-jcjx-c3j3-44pr","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/cyyynthia/tokenize","tags":["package"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jcjx-c3j3-44pr","url":"https://github.com/advisories/GHSA-jcjx-c3j3-44pr","licence":"CC-BY-4.0","modified":"2021-11-08T21:09:02.000Z"}],"updatedAt":"2026-11-25T22:56:45.758Z"}