CVE-2026-21717

nodejs: v8: Node.js: Denial of Service via V8 string hashing mechanism due to predictable hash collisions

Published Mar 30, 2026 CVSS 3.1 · 5.9 Medium EPSS < 1% KEV · Not listed
Description
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**.

Analysis

AI-generated

Technical impact

V8's string hashing mechanism treats integer-like strings as their numeric values, creating easily predictable hash collisions. An attacker can craft many such strings—most commonly by sending JSON that is parsed by JSON.parse—to flood the internal string hash table, severely degrading Node.js process performance and potentially causing a denial of service. The flaw is a hash collision vulnerability (CWE-328) that leads to CPU exhaustion rather than code execution.

Affected Systems

The vulnerability affects Node.js versions 20.x, 22.x, 24.x, and 25.x distributed by nodejs:node.

Risk and Exploitability

The CVSS score of 5.9 indicates moderate severity. EPSS is below 1%, suggesting the likelihood of exploitation is currently low, and the vulnerability is not listed in CISA's KEV catalog. The attack vector is inferred to be remote, requiring the attacker to send crafted input to an endpoint that processes JSON; most JSON parsing endpoints are exposed over the network, making the condition reasonably achievable if such endpoints exist on the system.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Node.js to the latest patched release for versions 20.x, 22.x, 24.x, or 25.x.
  • Verify the installed Node.js version after upgrade to confirm the patch is applied.

Generated by OpenCVE AI on April 2, 2026 at 21:44 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DSA Debian DSA DSA-6183-1 nodejs security update
History
Type Values Removed Values Added
First Time appeared Nodejs node.js
CPEs cpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:*
Vendors & Products Nodejs node.js
Type Values Removed Values Added
Weaknesses CWE-770
Type Values Removed Values Added
Title nodejs: v8: Node.js: Denial of Service via V8 string hashing mechanism due to predictable hash collisions
First Time appeared Nodejs
Nodejs nodejs
Weaknesses CWE-328
CWE-770
Vendors & Products Nodejs
Nodejs nodejs
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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**.
References
Metrics cvssV3_0

{'score': 5.9, 'vector': 'CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
hackerone
Published
Updated
May 10, 2026, 1:16 PM
Reserved
Jan 4, 2026, 3:00 PM
Status
Analyzed
Published
Mar 30, 2026, 8:16 PM
Modified
Aug 19, 2026, 12:54 PM
Severity
Moderate
Public date
Mar 30, 2026, 7:07 PM