CVE-2026-21713
Last modified
CVE-2026-21713 is a medium-severity vulnerability rated 5.9/10 on the CVSS scale. 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**.. EPSS estimates a 0.39% chance of exploitation in the next 30 days.
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**.
Metrics
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Nodejs | Node.Js | <= 20.20.1 |
| Nodejs | Node.Js | >= 22.0.0, <= 22.22.1 |
| Nodejs | Node.Js | >= 24.0.0, <= 24.14.0 |
| Nodejs | Node.Js | >= 25.0.0, <= 25.8.1 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-21713?
How severe is CVE-2026-21713?
How do I fix CVE-2026-21713?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-21708A vulnerability allowing a Backup Viewer to perform remote c…9.9
- CVE-2026-21709A vulnerability allowing a local attacker with administrator…6.7
- CVE-2026-2171A vulnerability was found in code-projects Online Student Ma…9.8
- CVE-2026-21710A flaw in Node.js HTTP request handling causes an uncaught `…7.5
- CVE-2026-21711A flaw in Node.js Permission Model network enforcement leave…5.3
- CVE-2026-21712A flaw in Node.js URL processing causes an assertion failure…6.5
- CVE-2026-21714A memory leak occurs in Node.js HTTP/2 servers when a client…5.3
- CVE-2026-21715A flaw in Node.js Permission Model filesystem enforcement le…3.3
- CVE-2026-21716An incomplete fix for CVE-2024-36137 leaves `FileHandle.chmo…3.3
- CVE-2026-21717A flaw in V8's string hashing mechanism causes integer-like …5.9
- CVE-2026-21718An authentication bypass vulnerability exists in Copeland XW…9.8
- CVE-2026-21719An OS command injection vulnerability exists in CubeCart pri…8.6
Are you affected by CVE-2026-21713?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
