Node.jsApplication

CVE-2026-21717

MEDIUM · 5.9 CVSS v3.1 Published 2026-03-30
Fix available
A fix is available. Upgrade to after 25.8.1 or later.
See remediation →
68/100
Remediation priority · Elevated
Remotely reachable No privileges Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
A flaw in V8's string hashing mechanism causes integer-like strings to be hashed to their numeric value, making hash collisions trivially predictable. By crafting a request that causes many such collisions in V8's internal string table, an attacker can significantly degrade performance of the Node.js process. The most common trigger is any endpoint that calls `JSON.parse()` on attacker-controlled input, as JSON parsing automatically internalizes short strings into the affected hash table. This vulnerability affects **20.x, 22.x, 24.x, and 25.x**.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

A flaw in V8's string hashing algorithm causes integer-like strings (e.g., '1', '42') to hash to their numeric value, making hash collisions trivially predictable. Attackers can exploit this by sending crafted requests with many colliding strings—commonly via JSON.parse() on untrusted input—causing significant performance degradation through hash table collision attacks.

MitigationUpgrade Node.js to a patched version; as a temporary measure, limit or validate JSON input size and complexity to reduce exposure to the collision attack vector.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
Node.jsApplication
Affected:<= 20.20.1>= 22.0.0, <= 22.22.1>= 24.0.0, <= 24.14.0>= 25.0.0, <= 25.8.1

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
High
Privileges
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify Node.js version
    Run 'node --version' to get the Node.js version, then compare it against the affected V8 version range for this CVE (V8 versions with the flawed string hashing algorithm)
    Affected if The installed Node.js version contains a V8 engine with the predictable hash vulnerability and has not been patched
  2. Identify V8 engine version
    Run 'node -p process.versions.v8' to get the V8 engine version bundled with Node.js
    Affected if The V8 version matches the vulnerable versions affected by the integer-like string hashing flaw
  3. Determine if application parses untrusted JSON
    Search codebase for JSON.parse() calls that process input from external sources (HTTP requests, user uploads, API payloads, etc.)
    Affected if The application uses JSON.parse() on untrusted input without prior validation, creating the attack surface for hash collision attacks
  4. Inspect JSON input handling configuration
    Review application code and server configuration for any limits on JSON payload size, depth, or number of keys (e.g., body-parser limits, express.json middleware limits)
    Affected if No input size or complexity limits are configured on JSON parsing, allowing attackers to send payloads with many colliding string keys
  5. Check for runtime monitoring of hash collision attacks
    Look for application logging, metrics, or detection mechanisms that flag unusual numbers of duplicate keys in parsed JSON objects
    Affected if No monitoring exists for hash collision patterns, meaning an attack would go undetected until performance degradation occurs

A user is affected if their Node.js/V8 version contains the flawed string hashing algorithm AND the application parses untrusted JSON input without size/complexity limits.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to a release after 25.8.1
Interim mitigation

Upgrade Node.js to a patched version; as a temporary measure, limit or validate JSON input size and complexity to reduce exposure to the collision attack vector.

Recommended fix Moderate confidence

Latest stable Node.js 20.x LTS / 22.x release containing V8 security fix (check nodejs.org for exact version)

  1. Upgrade Node.js to a version that includes the fixed V8 release containing the patch for this vulnerability
  2. For Node.js 20.x users: upgrade to the latest 20.x LTS release that includes the security fix
  3. For Node.js 22.x users: upgrade to the latest stable 22.x release that includes the security fix
  4. For Node.js 24.x and 25.x users: upgrade to the latest stable release in those branches that includes the fix
  5. After upgrading, verify the Node.js version includes the V8 fix by checking the release notes or changelog
  6. Test application functionality to ensure the upgrade does not break existing features
Caveat Standard Node.js upgrade considerations apply - review breaking changes in the release notes for the target version

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Node.js Scoped from the published advisory
  • Consultation2.0 h
  • Implementation2.0 h
  • Testing4.0 h
  • Review / QA2.0 h
10.0 hours of engineering $1,720
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,752.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2026-21717 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2026-21717 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data