# CVE-2026-21713: A flaw in Node.js HMAC verification uses a non-constant-time comparison when validating user-provided signatures, potentially leaking timin…

- Severity: Medium 5.9 (CVSS:3.0, scored by hackerone) `CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 36% of CVEs (2026-12-01)
- Published: 2026-03-30T19:07:28.356Z
- Modified: 2026-09-08T08:48:17.475Z
- Also known as: BIT-NODE-2026-21713, BIT-NODE-MIN-2026-21713
- Weaknesses: CWE-208
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: hackerone

## 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**.

(As written by CVE List.)

## Affected

- nodejs node: from 20.20.1 up to 20.20.1; from 22.22.1 up to 22.22.1; from 24.14.0 up to 24.14.0; from 25.8.1 up to 25.8.1; from 4.0 before 4.*; from 5.0 before 5.*; from 6.0 before 6.*; from 7.0 before 7.*; from 8.0 before 8.*; from 9.0 before 9.*; from 10.0 before 10.*; from 11.0 before 11.*; and 8 more
- nodejs node.js: up to 20.20.1; from 22.0.0 up to 22.22.1; from 24.0.0 up to 24.14.0; from 25.0.0 up to 25.8.1
- node (Bitnami): before 20.20.2; from 21.0.0 before 22.22.2; from 23.0.0 before 24.14.1; from 25.0.0 before 25.8.2
- node-min (Bitnami): before 20.20.2; from 21.0.0 before 22.22.2; from 23.0.0 before 24.14.1; from 25.0.0 before 25.8.2

## Every score

- hackerone: CVSS:3.0 5.9 Medium `CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://nodejs.org/en/blog/vulnerability/march-2026-security-releases> (advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-21713> (web)

## Sources

- CVE List: [CVE-2026-21713](https://www.cve.org/CVERecord?id=CVE-2026-21713), CVE Terms of Use, modified 2026-05-10
- NVD: [CVE-2026-21713](https://nvd.nist.gov/vuln/detail/CVE-2026-21713), Public domain, modified 2026-08-19
- Bitnami Vulnerability Database: [BIT-NODE-2026-21713](https://osv.dev/vulnerability/BIT-NODE-2026-21713), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-NODE-MIN-2026-21713](https://osv.dev/vulnerability/BIT-NODE-MIN-2026-21713), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-21713 · Whole record: https://cve.day/CVE-2026-21713.json · Rebuilt by cve.day 2026-11-25T22:59:17.526Z
