CVE-2026-21717: Vulnerability in nodejs node
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**.
AI Analysis
Technical Summary
CVE-2026-21717 is a medium-severity vulnerability in the Node.js runtime, specifically rooted in the V8 JavaScript engine's string hashing mechanism. The flaw causes integer-like strings to be hashed to their numeric values, which makes hash collisions trivially predictable. This predictability allows an attacker to craft inputs that cause numerous hash collisions in V8's internal string table. Since Node.js frequently uses V8 for JavaScript execution, and JSON.parse() automatically internalizes short strings into this hash table, endpoints that parse JSON from untrusted sources are particularly vulnerable. When many collisions occur, the performance of the Node.js process degrades significantly, potentially leading to denial-of-service conditions by exhausting CPU resources. The vulnerability affects a broad range of Node.js versions, including 20.x, 22.x, 24.x, 25.x, and earlier major versions from 4.0 through 19.0, indicating a long-standing issue. The CVSS 3.0 base score is 5.9, reflecting a network attack vector with high attack complexity but no required privileges or user interaction, and impacting availability only. No known exploits have been reported in the wild as of the publication date. The vulnerability does not affect confidentiality or integrity but can severely impact service availability, making it a significant concern for applications relying on Node.js for JSON processing of untrusted inputs.
Potential Impact
The primary impact of CVE-2026-21717 is denial of service through significant performance degradation of Node.js processes. Organizations running affected Node.js versions that expose JSON parsing endpoints to untrusted or attacker-controlled input are at risk of service disruption. This can lead to downtime, degraded user experience, and potential cascading failures in dependent services. Since Node.js is widely used in web applications, APIs, and microservices globally, the vulnerability could affect a large number of internet-facing services. The attack requires no authentication or user interaction, increasing the risk of automated exploitation attempts. Although no confidentiality or integrity impact exists, availability degradation can result in financial losses, reputational damage, and operational disruption. Enterprises relying on Node.js for critical infrastructure or customer-facing applications are particularly vulnerable. The broad version range affected means many legacy and current deployments may be exposed if not updated.
Mitigation Recommendations
1. Upgrade Node.js to the latest patched versions once official fixes are released by the Node.js project. Monitor Node.js security advisories for updates. 2. Implement strict input validation and sanitization on all endpoints that parse JSON or accept string inputs to reduce the risk of attacker-controlled payloads triggering collisions. 3. Employ rate limiting and request throttling on APIs to mitigate the impact of collision-based denial-of-service attempts. 4. Use Web Application Firewalls (WAFs) or API gateways capable of detecting and blocking anomalous request patterns indicative of hash collision attacks. 5. Monitor application performance metrics and logs for unusual CPU spikes or latency increases that may indicate exploitation attempts. 6. Consider isolating critical Node.js services behind load balancers and failover mechanisms to maintain availability during attacks. 7. For legacy systems where immediate patching is not feasible, consider disabling or restricting JSON parsing of untrusted input or using alternative parsing libraries not affected by this vulnerability. 8. Conduct regular security assessments and penetration tests focusing on input handling and DoS resilience in Node.js applications.
Affected Countries
United States, India, Germany, United Kingdom, Canada, Australia, France, Japan, South Korea, Brazil, Netherlands, Singapore, China, Russia, Israel
CVE-2026-21717: Vulnerability in nodejs node
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**.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-21717 is a medium-severity vulnerability in the Node.js runtime, specifically rooted in the V8 JavaScript engine's string hashing mechanism. The flaw causes integer-like strings to be hashed to their numeric values, which makes hash collisions trivially predictable. This predictability allows an attacker to craft inputs that cause numerous hash collisions in V8's internal string table. Since Node.js frequently uses V8 for JavaScript execution, and JSON.parse() automatically internalizes short strings into this hash table, endpoints that parse JSON from untrusted sources are particularly vulnerable. When many collisions occur, the performance of the Node.js process degrades significantly, potentially leading to denial-of-service conditions by exhausting CPU resources. The vulnerability affects a broad range of Node.js versions, including 20.x, 22.x, 24.x, 25.x, and earlier major versions from 4.0 through 19.0, indicating a long-standing issue. The CVSS 3.0 base score is 5.9, reflecting a network attack vector with high attack complexity but no required privileges or user interaction, and impacting availability only. No known exploits have been reported in the wild as of the publication date. The vulnerability does not affect confidentiality or integrity but can severely impact service availability, making it a significant concern for applications relying on Node.js for JSON processing of untrusted inputs.
Potential Impact
The primary impact of CVE-2026-21717 is denial of service through significant performance degradation of Node.js processes. Organizations running affected Node.js versions that expose JSON parsing endpoints to untrusted or attacker-controlled input are at risk of service disruption. This can lead to downtime, degraded user experience, and potential cascading failures in dependent services. Since Node.js is widely used in web applications, APIs, and microservices globally, the vulnerability could affect a large number of internet-facing services. The attack requires no authentication or user interaction, increasing the risk of automated exploitation attempts. Although no confidentiality or integrity impact exists, availability degradation can result in financial losses, reputational damage, and operational disruption. Enterprises relying on Node.js for critical infrastructure or customer-facing applications are particularly vulnerable. The broad version range affected means many legacy and current deployments may be exposed if not updated.
Mitigation Recommendations
1. Upgrade Node.js to the latest patched versions once official fixes are released by the Node.js project. Monitor Node.js security advisories for updates. 2. Implement strict input validation and sanitization on all endpoints that parse JSON or accept string inputs to reduce the risk of attacker-controlled payloads triggering collisions. 3. Employ rate limiting and request throttling on APIs to mitigate the impact of collision-based denial-of-service attempts. 4. Use Web Application Firewalls (WAFs) or API gateways capable of detecting and blocking anomalous request patterns indicative of hash collision attacks. 5. Monitor application performance metrics and logs for unusual CPU spikes or latency increases that may indicate exploitation attempts. 6. Consider isolating critical Node.js services behind load balancers and failover mechanisms to maintain availability during attacks. 7. For legacy systems where immediate patching is not feasible, consider disabling or restricting JSON parsing of untrusted input or using alternative parsing libraries not affected by this vulnerability. 8. Conduct regular security assessments and penetration tests focusing on input handling and DoS resilience in Node.js applications.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- hackerone
- Date Reserved
- 2026-01-04T15:00:06.575Z
- Cvss Version
- 3.0
- State
- PUBLISHED
Threat ID: 69cacda7e6bfc5ba1d6188b4
Added to database: 3/30/2026, 7:23:19 PM
Last enriched: 3/30/2026, 7:39:21 PM
Last updated: 3/30/2026, 9:32:40 PM
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.