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**.
Published: 2026-03-30
Score: 5.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service
Action: Immediate Patch
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

Thu, 02 Apr 2026 20:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-770

Wed, 01 Apr 2026 02:15:00 +0000

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


Mon, 30 Mar 2026 20:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Mon, 30 Mar 2026 19:30:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: hackerone

Published:

Updated: 2026-03-30T19:46:10.357Z

Reserved: 2026-01-04T15:00:06.575Z

Link: CVE-2026-21717

cve-icon Vulnrichment

Updated: 2026-03-30T19:46:07.107Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-03-30T20:16:20.010

Modified: 2026-04-01T14:24:21.833

Link: CVE-2026-21717

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-03-30T19:07:28Z

Links: CVE-2026-21717 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-04-03T09:38:07Z

Weaknesses