GHSA-jcjx-c3j3-44pr: @cyyynthia/tokenize Insufficient Session Expiration Vulnerability

HIGH
CWE-613
Published
Advisory Summary

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

GHSA-jcjx-c3j3-44pr at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-jcjx-c3j3-44pr
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-613: Insufficient Session Expiration
Affected Product @cyyynthia/tokenize
Package Ecosystem npm
Published Date
Last Updated

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.

@cyyynthia/tokenize fixed: 1.1.3
npm install @cyyynthia/tokenize@1.1.3
Verify Direct and Transitive Dependencies

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

### 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: * Open an issue in [github.com/cyyynthia/tokenize](https://github.com/cyyynthia/tokenize) * Email us at [cynthia@cynthia.dev](mailto:cynthia@cynthia.dev)

GHSA-jcjx-c3j3-44pr Affected @cyyynthia/tokenize Versions

1 component(s)
Fixed Versions:
1.1.3
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?
GHSA-jcjx-c3j3-44pr is a security vulnerability in @cyyynthia/tokenize involving Insufficient Session Expiration in @cyyynthia/tokenize under CWE-613: Insufficient Session Expiration.
Which @cyyynthia/tokenize versions are affected?
Affected versions include releases prior to 1.1.3 across affected packages: @cyyynthia/tokenize.
What version fixes GHSA-jcjx-c3j3-44pr?
Upgrading to 1.1.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @cyyynthia/tokenize affected?
Yes, @cyyynthia/tokenize is affected in releases prior to 1.1.3. Upgrade your dependency to 1.1.3 or later.
What CWE is associated with GHSA-jcjx-c3j3-44pr?
GHSA-jcjx-c3j3-44pr is classified under CWE-613: Insufficient Session Expiration (According to WASC, "Insufficient Session Expiration is when a web site permits an attacker to reuse old session credentials or session IDs for authorization.").
How can I check npm dependencies for GHSA-jcjx-c3j3-44pr?
Run the dependency tree command: 'npm ls @cyyynthia/tokenize'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}