CVE-2026-21713: Medium severity Node.js Node.js vulnerability

Published Mar 30, 2026
·
Updated

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.

Affected Software

7 affected componentsFixes available
Node.js Node.js>=20.0.0<21.0.0, >=22.0.0<23.0.0, >=24.0.0<25.0.0, >=25.0.0<26.0.0
Microsoft azl3 nodejs 20.14.0-14
Microsoft azl3 nodejs24 24.13.0-3
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

Event History

Mar 30, 2026
CVE Published
via MITRE·07:07 PM
Data Sourced
via MITRE·07:07 PM
DescriptionSeverity
Data Sourced
via Red Hat·08:02 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·08:16 PM
DescriptionSeverityWeaknessAffected Software
Apr 1, 2026
Data Sourced
via Microsoft·08:19 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·08:19 AM
Severity
Updated
via Microsoft·08:19 AM
Affected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-21713?

CVE-2026-21713 is considered a medium severity vulnerability due to its potential for timing attacks.

2

How do I fix CVE-2026-21713?

To mitigate CVE-2026-21713, update Node.js to a version that is patched against this vulnerability.

3

Which versions of Node.js are affected by CVE-2026-21713?

CVE-2026-21713 affects Node.js versions 20.0.0 to 21.0.0, 22.0.0 to 23.0.0, 24.0.0 to 25.0.0, and 25.0.0 to 26.0.0.

4

What is the impact of CVE-2026-21713?

The impact of CVE-2026-21713 includes potential exposure of sensitive data due to timing attacks that can leak information about user-provided signatures.

5

Is CVE-2026-21713 a critical vulnerability?

CVE-2026-21713 is not classified as critical, but it is important to address due to its implications for security in certain threat models.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203