Vendors › Node.js

CVE-2026-21713

Medium (no CVSS assigned) EPSS 0.4% Node.js · Node.js

Timing side-channel in HMAC verification via memcmp() in crypto_hmac.cc leads to potential MAC forgery

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.

Published2026-03-24
Updated2026-03-24
AffectedNode.js 25.x, 24.x, 22.x, 20.x
FixUpgrade to v20.20.2, v22.22.2, v24.14.1, v25.8.2 (first fixed release per supported branch).
Vendor advisoryhttps://nodejs.org/en/blog/vulnerability/march-2026-security-releases#timing-side-channel-in-hmac-verification-via-memcmp-in-crypto_hmaccc-leads-to-potential-mac-forgery-cve-2026-21713---medium

CVEs (1)

CVECWETypeImpactLinks
CVE-2026-21713CWE-208OtherInformation LeakNVD · CVE.org · EUVD

CWE, type and impact come from the NVD enrichment pass; unfilled rows are pending enrichment.

Same CVE in other advisories

Open in the CVEMesh app Create a free account

Track this advisory against your own stack — add your assets and CVEMesh shows which advisories actually apply to the versions you run.

CVEMesh aggregates public vendor advisories as guidance; always verify against the vendor's official advisory before patching or upgrading.