CVE-2026-21713
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**.
Description as published by the source, in English.
Key facts
- Published
- 2026-03-30
- Last modified
- 2026-08-19
- Assigned by
- support@hackerone.com
- CVSS vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N- Scored by
- support@hackerone.com
- Probability of exploitation
-
0.4 %
higher than 31 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Not registered in the sources
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Nodejs | Node.js | ≤ 20.20.1 | Affected |
| Nodejs | Node.js | ≥ 22.0.0, ≤ 22.22.1 | Affected |
| Nodejs | Node.js | ≥ 24.0.0, ≤ 24.14.0 | Affected |
| Nodejs | Node.js | ≥ 25.0.0, ≤ 25.8.1 | Affected |
Weakness type
-
CWE-208: Observable Timing Discrepancy
Two separate operations in a product require different amounts of time to complete, in a way that is observable to an actor and reveals security-relevant information about the state of the product, such as whether a par…
Attack techniques
Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.
- T1082: System Information Discovery
- T1592.002: Software
References
Related at Berigo
Articles
-
New malware looks up its command server in a Polygon smart contract
Same product
2026-09-26
Blackpoint has found ChainScript, a Node.js remote access trojan spread through fake installers for Spotify, Zoom and Teams. Rather than trusting the…
-
Attackers fetch Node.js from the official site to run their malware
Same product
2026-09-26
Since February 2026 Symantec's Threat Hunter Team has seen several actors use the signed Node.js runtime to run malware and keep it alive at governme…
-
SimpleHelp flaw exploited to spread malware across managed systems
Same product
2026-06-29
Blackpoint Cyber describes an intrusion that began with an authentication bypass in the SimpleHelp RMM tool and ended with two new malware components.
-
Microsoft warns of ZIP campaign against hospitality organisations
Same product
2026-06-25
Since April 2026 Microsoft has tracked a campaign against hospitality firms in Europe and Asia, where ZIP files with fake image shortcuts give persis…
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.