Vulnerabilities

CVE-2026-21713

Medium 5.9 CVSS 3.0

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 discovery
  • T1592.002: Software reconnaissance

References

Related at Berigo

Articles

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities