CVE-2026-21717
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 · uneditedA 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 confidenceA 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.
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<= 20.20.1>= 22.0.0, <= 22.22.1>= 24.0.0, <= 24.14.0>= 25.0.0, <= 25.8.1CVSS 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 checksWork through these to decide whether this CVE applies to you.
-
Identify Node.js versionRun '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
-
Identify V8 engine versionRun 'node -p process.versions.v8' to get the V8 engine version bundled with Node.jsAffected if The V8 version matches the vulnerable versions affected by the integer-like string hashing flaw
-
Determine if application parses untrusted JSONSearch 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
-
Inspect JSON input handling configurationReview 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
-
Check for runtime monitoring of hash collision attacksLook for application logging, metrics, or detection mechanisms that flag unusual numbers of duplicate keys in parsed JSON objectsAffected 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.
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 · scopedUpgrade 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.
Latest stable Node.js 20.x LTS / 22.x release containing V8 security fix (check nodejs.org for exact version)
- Upgrade Node.js to a version that includes the fixed V8 release containing the patch for this vulnerability
- For Node.js 20.x users: upgrade to the latest 20.x LTS release that includes the security fix
- For Node.js 22.x users: upgrade to the latest stable 22.x release that includes the security fix
- For Node.js 24.x and 25.x users: upgrade to the latest stable release in those branches that includes the fix
- After upgrading, verify the Node.js version includes the V8 fix by checking the release notes or changelog
- Test application functionality to ensure the upgrade does not break existing features
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation2.0 h
- Testing4.0 h
- Review / QA2.0 h
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 locallyCheck 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 sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-21717 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
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.
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.
- 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