CVE-2026-21713
JSON

5.9medium

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

Severity
5.9medium CVSS:3.0 by hackerone
Exploit likelihood
0.40% (higher than 36% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
hackerone
Also known as
BIT-NODE-2026-21713BIT-NODE-MIN-2026-21713

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

Affected

Product or packageVersionsReported by
nodejs nodefrom 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.* and 12 moreCVE List
nodejs node.jsup 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.1NVD
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.2Bitnami Vulnerability Database
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.2Bitnami Vulnerability Database

All scores

hackerone5.9medium CVSS:3.0CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Bitnami Vulnerability Databasemedium rating

Classification

CWE-208

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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

NVD (es)

Un fallo en la verificación HMAC de Node.js utiliza una comparación de tiempo no constante al validar firmas proporcionadas por el usuario, filtrando potencialmente información de temporización proporcional al número de bytes coincidentes. Bajo ciertos modelos de amenaza donde las mediciones de temporización de alta resolución son posibles, este comportamiento podría ser explotado como un oráculo de temporización para inferir valores HMAC. Node.js ya proporciona primitivas de comparación seguras contra ataques de temporización utilizadas en otras partes de la base de código, lo que indica que esto es un descuido en lugar de una decisión de diseño intencional. Esta vulnerabilidad afecta 20.x, 22.x, 24.x y 25.x.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-21713 changed 2026-05-10CVE Terms of Use
NVDCVE-2026-21713 changed 2026-08-19Public domain
Bitnami Vulnerability DatabaseBIT-NODE-2026-21713 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-NODE-MIN-2026-21713 changed 2026-09-08Apache-2.0