GHSA-jcjx-c3j3-44pr

Suggest an improvement
Source
https://github.com/advisories/GHSA-jcjx-c3j3-44pr
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/11/GHSA-jcjx-c3j3-44pr/GHSA-jcjx-c3j3-44pr.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-jcjx-c3j3-44pr
Published
2021-11-10T16:44:12Z
Modified
2021-11-08T21:09:02Z
Summary
Insufficient Session Expiration in @cyyynthia/tokenize
Details

Impact

A 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.

Patches

Version 1.1.3 contains a patch that'll invalidate these faulty tokens and make new ones behave as expected.

Workarounds

None. Tokens do not hold the necessary information to perform invalidation anymore.

References

PR #1

For more information

If you have any questions or comments about this advisory:

Database specific
{
    "cwe_ids": [
        "CWE-613"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2021-11-08T21:09:02Z",
    "nvd_published_at": null,
    "severity": "HIGH"
}
References

Affected packages

npm / @cyyynthia/tokenize

Package

Name
@cyyynthia/tokenize
View open source insights on deps.dev
Purl
pkg:npm/%40cyyynthia/tokenize

Affected 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"