Vulnerability
CVE-2026-21713
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**.
63 advisories report this vulnerability, across 16 ecosystems.
Advisories in Chainguard
- CGA-27w9-vgc6-xqfx
- CGA-2gcp-2m6v-47vj
- CGA-5cj2-5f33-4f94
- CGA-7479-r486-84vc
- CGA-7mjx-p3x8-w55w
- CGA-8x6q-3x4q-6xjx
- CGA-f3j5-3cg2-c4jv
- CGA-h29q-7f57-3v4m
- CGA-jj4r-fjv7-6255
- CGA-jph8-g9xf-4pjp
- CGA-p6ch-xm9r-xgfr
- CGA-q9j5-p2vx-67cv
- CGA-r8h5-h5w7-53x7
- CGA-r9v6-q4gv-vm9p
- CGA-rqgg-479r-x4cc
- CGA-rqhp-77fg-2jjq