CVE-2026-21713: Vulnerability in nodejs node
A flaw in Node.js HMAC verification uses a non-constant-time comparison when validating user-provided signatures, potentially leaking timing information proportional to the number of matching bytes. Under certain threat models where high-resolution timing measurements are possible, this behavior could be exploited as a timing oracle to infer HMAC values. Node.js already provides timing-safe comparison primitives used elsewhere in the codebase, indicating this is an oversight rather than an intentional design decision. This vulnerability affects **20.x, 22.x, 24.x, and 25.x**.
AI Analysis
Technical Summary
This vulnerability in Node.js arises from the use of a non-constant-time comparison function when validating user-provided HMAC signatures. Because the comparison duration varies with the number of matching bytes, an attacker capable of precise timing measurements could exploit this behavior to gradually infer the correct HMAC value. The issue affects multiple Node.js versions including 20.x, 22.x, 24.x, and 25.x. Node.js typically uses timing-safe comparison functions in other parts of its codebase, suggesting this is an unintentional flaw. The CVSS score is 5.9 (medium severity), reflecting the network attack vector, high complexity, no privileges required, no user interaction, and confidentiality impact only. No patch or vendor advisory is currently provided.
Potential Impact
The vulnerability allows an attacker to potentially leak information about HMAC values through timing side channels, which could compromise the confidentiality of the HMAC. There is no indication of impact on integrity or availability. Exploitation requires the ability to perform high-resolution timing measurements, which may limit practical exploitation scenarios. No known exploits in the wild have been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should be aware of the potential timing leak in HMAC verification and consider mitigating risk by limiting attacker ability to perform precise timing measurements or by applying application-level mitigations. Avoid relying solely on the affected Node.js versions for critical HMAC verification where timing attacks are a concern.
CVE-2026-21713: Vulnerability in nodejs node
Description
A flaw in Node.js HMAC verification uses a non-constant-time comparison when validating user-provided signatures, potentially leaking timing information proportional to the number of matching bytes. Under certain threat models where high-resolution timing measurements are possible, this behavior could be exploited as a timing oracle to infer HMAC values. Node.js already provides timing-safe comparison primitives used elsewhere in the codebase, indicating this is an oversight rather than an intentional design decision. This vulnerability affects **20.x, 22.x, 24.x, and 25.x**.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability in Node.js arises from the use of a non-constant-time comparison function when validating user-provided HMAC signatures. Because the comparison duration varies with the number of matching bytes, an attacker capable of precise timing measurements could exploit this behavior to gradually infer the correct HMAC value. The issue affects multiple Node.js versions including 20.x, 22.x, 24.x, and 25.x. Node.js typically uses timing-safe comparison functions in other parts of its codebase, suggesting this is an unintentional flaw. The CVSS score is 5.9 (medium severity), reflecting the network attack vector, high complexity, no privileges required, no user interaction, and confidentiality impact only. No patch or vendor advisory is currently provided.
Potential Impact
The vulnerability allows an attacker to potentially leak information about HMAC values through timing side channels, which could compromise the confidentiality of the HMAC. There is no indication of impact on integrity or availability. Exploitation requires the ability to perform high-resolution timing measurements, which may limit practical exploitation scenarios. No known exploits in the wild have been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should be aware of the potential timing leak in HMAC verification and consider mitigating risk by limiting attacker ability to perform precise timing measurements or by applying application-level mitigations. Avoid relying solely on the affected Node.js versions for critical HMAC verification where timing attacks are a concern.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- hackerone
- Date Reserved
- 2026-01-04T15:00:06.574Z
- Cvss Version
- 3.0
- State
- PUBLISHED
Threat ID: 69cacda7e6bfc5ba1d6188a8
Added to database: 3/30/2026, 7:23:19 PM
Last enriched: 5/11/2026, 1:44:40 AM
Last updated: 5/15/2026, 10:52:22 AM
Views: 153
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.