{"id":"GHSA-jcjx-c3j3-44pr","aliases":[],"status":"published","title":"Insufficient Session Expiration in @cyyynthia/tokenize","description":"### 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)","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-613"],"published":"2021-11-10T16:44:12Z","modified":"2023-01-09T05:05:30Z","fixes":[{"ecosystem":"npm","package":"@cyyynthia/tokenize","fixed_in":["1.1.3"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"@cyyynthia/tokenize","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.1.0"},{"fixed":"1.1.3"}]}]},{"source":"osv","ecosystem":"npm","package":"@cyyynthia/tokenize","ranges":[{"type":"SEMVER","events":[{"introduced":"1.1.0"},{"fixed":"1.1.3"}]}]}],"references":[{"url":"https://github.com/cyyynthia/tokenize/security/advisories/GHSA-jcjx-c3j3-44pr","tags":["web"]},{"url":"https://github.com/advisories/GHSA-jcjx-c3j3-44pr"},{"url":"https://github.com/cyyynthia/tokenize","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-jcjx-c3j3-44pr","title":"Insufficient Session Expiration in @cyyynthia/tokenize","description":"### 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","status":"published","published":"2021-11-10T16:44:12Z","modified":"2023-01-09T05:05:30Z","cwes":["CWE-613"],"updated_at":"2026-11-02T14:36:11.367194Z"}],"osv":[{"id":"GHSA-jcjx-c3j3-44pr","title":"Insufficient Session Expiration in @cyyynthia/tokenize","description":"### 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","status":"published","published":"2021-11-10T16:44:12Z","modified":"2021-11-08T21:09:02Z","cwes":["CWE-613"],"updated_at":"2026-11-02T15:46:50.336262Z"}]}}
