Vulnerabilities in pkg:npm/@cyyynthia/tokenize
PACKAGEGHSA-jcjx-c3j3-44pr is a HIGH insufficient session expiration vulnerability (CWE-613: Insufficient Session Expiration) affecting @cyyynthia/tokenize libraries in the npm ecosystem. The issue involves insufficient session expiration in @cyyynthia/tokenize. Remediation is available by upgrading affected packages to version 1.1.3.
pkg:npm/@cyyynthia/tokenize
Vulnerability advisories affecting package pkg:npm/@cyyynthia/tokenize. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-jcjx-c3j3-44pr | - | HIGH | Insufficient Session Expiration in @cyyynthia/tokenize |
GHSA-jcjx-c3j3-44pr at a Glance
How to Fix GHSA-jcjx-c3j3-44pr
To remediate this vulnerability, upgrade all affected @cyyynthia/tokenize dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @cyyynthia/tokenize@1.1.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @cyyynthia/tokenize
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-jcjx-c3j3-44pr, inspect your project dependencies using npm:
npm ls @cyyynthia/tokenize
Analyze the terminal output to locate any version of @cyyynthia/tokenize in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.3), your application is affected.
Note: The npm ls @cyyynthia/tokenize command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-613: Insufficient Session Expiration, where according to wasc, "insufficient session expiration is when a web site permits an attacker to reuse old session credentials or session ids for authorization.". In @cyyynthia/tokenize, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-jcjx-c3j3-44pr Affected @cyyynthia/tokenize Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@cyyynthia/tokenize
|
npm |
≥ 1.1.0
< 1.1.3
|
1.1.3
|
References
Frequently Asked Questions
What is GHSA-jcjx-c3j3-44pr?
Which @cyyynthia/tokenize versions are affected?
What version fixes GHSA-jcjx-c3j3-44pr?
Is @cyyynthia/tokenize affected?
What CWE is associated with GHSA-jcjx-c3j3-44pr?
How can I check npm dependencies for GHSA-jcjx-c3j3-44pr?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-jcjx-c3j3-44pr",
"modified" : "2021-11-08T21:09:02Z",
"published" : "2021-11-10T16:44:12Z",
"aliases" : [ ],
"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",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@cyyynthia/tokenize"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.1.0"
}, {
"fixed" : "1.1.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/cyyynthia/tokenize/security/advisories/GHSA-jcjx-c3j3-44pr"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/cyyynthia/tokenize"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-613" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-11-08T21:09:02Z",
"nvd_published_at" : null
}
}