Skip to content
Fencer Vulns
medium 5.9

CVE-2026-21713 json

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

published 2026-03-30 7 mo ago modified 2026-09-08 2 mo ago also BIT-node-2026-21713 , BIT-node-min-2026-21713 , EUVD-2026-17174

cvss
5.9
version 3.0, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.4%
EPSS 0.4% chance of exploitation in 30 days, percentile 30%
public exploits
0
none known

Summary

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

Patch / fix

  • bitnami node 20.20.2, 22.22.2, 24.14.1, 25.8.2
  • bitnami node-min 20.20.2, 22.22.2, 24.14.1, 25.8.2
  • nodejs node.js 20.20.2, 22.22.2, 24.14.1, 25.8.2
  • nodejs Debian 12 18.20.4+dfsg-1~deb12u2
  • nodejs Debian 13 20.19.2+dfsg-1+deb13u2
  • nodejs Debian 14 22.22.2+dfsg+~cs22.19.15-1

debian advisories DEBIAN-CVE-2026-21713

  • nodejs24 RHEL 10.1 1:24.14.1-2.el10_1
  • nodejs24-npm RHEL 10.1 1:11.11.0-1.24.14.1.2.el10_1
  • nodejs24-libs RHEL 10.1 1:24.14.1-2.el10_1
  • nodejs24-full-i18n RHEL 10.1 1:24.14.1-2.el10_1
  • npm RHEL 8 1:11.11.0-1.24.14.1.2.module+el8.10.0+24190+49a46c75
  • nodejs RHEL 8 1:24.14.1-2.module+el8.10.0+24190+49a46c75
  • nodejs-libs RHEL 8 1:24.14.1-2.module+el8.10.0+24190+49a46c75
  • nodejs-nodemon RHEL 8 3.0.3-1.module+el8.10.0+24190+49a46c75

red hat advisories RHSA-2026:7675RHSA-2026:7670RHSA-2026:7350

  • nodejs16 SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE High Performance Computing 15 SP4-LTSS +1 more 16.20.2-150400.3.42.1
  • nodejs18 SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES 15 SP5-LTSS +5 more 18.20.8-150400.9.39.1
  • nodejs22 SLES for SAP applications 16.0, SLES 16.0 22.23.0-160000.1.1
  • nodejs22 SLE Module for Web and Scripting 15 SP7 22.22.2-150700.3.9.1
  • nodejs20 SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE High Performance Computing 15 SP5-LTSS +1 more 20.20.2-150500.11.27.1
  • nodejs24 SLE Module for Web and Scripting 15 SP7 24.14.1-150700.15.8.1
  • nodejs24 SLES for SAP applications 16.0, SLES 16.0 24.14.1-160000.1.1
  • nodejs18 SLES LTSS Extended Security 12 SP5, SLES 12 SP5-LTSS 18.20.8-8.44.1

suse advisories SUSE-SU-2026:4355-1SUSE-SU-2026:4261-1SUSE-SU-2026:4248-1SUSE-SU-2026:22368-1SUSE-SU-2026:1509-1SUSE-SU-2026:1478-1

  • nodejs22 openSUSE Leap 16.0 22.23.0-160000.1.1
  • nodejs26 openSUSE Tumbleweed 26.3.1-1.1
  • nodejs24 openSUSE Leap 16.0 24.14.1-160000.1.1
  • nodejs24 openSUSE Tumbleweed 24.14.1-1.1

opensuse advisories openSUSE-SU-2026:21058-1openSUSE-SU-2026:11110-1openSUSE-SU-2026:20519-1openSUSE-SU-2026:10504-1

  • npm AlmaLinux 8 1:11.11.0-1.24.14.1.2.module_el8.10.0+4160+4819ac42
  • nodejs AlmaLinux 8 1:24.14.1-2.module_el8.10.0+4160+4819ac42
  • nodejs-libs AlmaLinux 8 1:24.14.1-2.module_el8.10.0+4160+4819ac42
  • nodejs-nodemon AlmaLinux 8 3.0.3-1.module_el8.10.0+4061+f8ceeab9
  • nodejs-full-i18n AlmaLinux 8 1:24.14.1-2.module_el8.10.0+4160+4819ac42
  • nodejs-packaging AlmaLinux 8 2021.06-6.module_el8.10.0+4086+70facd4a
  • nodejs-packaging-bundler AlmaLinux 8 2021.06-6.module_el8.10.0+4086+70facd4a
  • nodejs24-npm AlmaLinux 10 1:11.11.0-1.24.14.1.2.el10_1

almalinux advisories ALSA-2026:7670ALSA-2026:7675ALSA-2026:7350

  • nodejs24 Rocky Linux 10 1:24.14.1-2.el10_1
  • nodejs-nodemon Rocky Linux 8 3.0.3-1.module+el8.10.0+2084+ab509703
  • nodejs-packaging Rocky Linux 8 2021.06-6.module+el8.10.0+40048+6d99f608
  • nodejs-nodemon Rocky Linux 9 3.0.3-3.module+el9.7.0+40025+0e0cf6b2
  • nodejs-packaging Rocky Linux 9 2021.06-6.module+el9.7.0+40052+e32ea525

rocky linux advisories RLSA-2026:7675RLSA-2026:7670RLSA-2026:7350

  • nodejs Alpine 3.22, Alpine 3.21 22.22.2-r0
  • nodejs Alpine 3.24, Alpine 3.23 24.14.1-r0

alpine advisories ALPINE-CVE-2026-21713

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • nodejs Azure Linux 3.0 20.14.0-15
  • nodejs24 Azure Linux 3.0 24.14.1-1

azure linux advisories AZL-81242AZL-81248

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2026-21713 updated cvss 5.9

Node.js: Node.js: Information disclosure via timing oracle in HMAC verification

  • Red Hat Enterprise Linux 8 npm, nodejs, nodejs-libs, nodejs-nodemon, nodejs-full-i18n, nodejs-packaging, +1 more Red Hat Enterprise Linux 9 npm, nodejs, nodejs-libs, nodejs-full-i18n Red Hat Enterprise Linux 10 nodejs22
    affected: workaround, no fix available “Fix deferred”
  • Red Hat Enterprise Linux AppStream (v. 8) nodejs 24.14.1-2.module+el8.10.0+24190+49a46c75, nodejs-libs 24.14.1-2.module+el8.10.0+24190+49a46c75, nodejs-nodemon 3.0.3-1.module+el8.10.0+24190+49a46c75, npm 11.11.0-1.24.14.1.2.module+el8.10.0+24190+49a46c75, nodejs-full-i18n 24.14.1-2.module+el8.10.0+24190+49a46c75, nodejs-packaging 2021.06-6.module+el8.10.0+24190+49a46c75, +1 more
    fixed: vendor fix RHSA-2026:7670
  • Red Hat Enterprise Linux AppStream (v. 9) nodejs 24.14.1-2.module+el9.7.0+24166+51c9666b, nodejs-libs 24.14.1-2.module+el9.7.0+24166+51c9666b, nodejs-nodemon 3.0.3-3.module+el9.7.0+24166+51c9666b, npm 11.11.0-1.24.14.1.2.module+el9.7.0+24166+51c9666b, nodejs-full-i18n 24.14.1-2.module+el9.7.0+24166+51c9666b, nodejs-packaging 2021.06-6.module+el9.7.0+24166+51c9666b, +1 more
    fixed: vendor fix RHSA-2026:7350
  • Red Hat Enterprise Linux AppStream (v. 10) nodejs24 24.14.1-2.el10_1, nodejs24-libs 24.14.1-2.el10_1, nodejs24-full-i18n 24.14.1-2.el10_1, nodejs24-npm 11.11.0-1.24.14.1.2.el10_1
    fixed: vendor fix RHSA-2026:7675

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
yes
Technical impact
partial
Assessed
7 mo ago

Exploit prediction

0.37% chance of exploitation in the next 30 days, higher than 30% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.0 5.9 CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
OSV 3.0 5.9 CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected packages

ecosystem package affected fixed in
bitnami node
<20.20.2
>=21.0.0, <22.22.2
>=23.0.0, <24.14.1
>=25.0.0, <25.8.2
20.20.2
22.22.2
24.14.1
25.8.2
bitnami node-min
<20.20.2
>=21.0.0, <22.22.2
>=23.0.0, <24.14.1
>=25.0.0, <25.8.2
20.20.2
22.22.2
24.14.1
25.8.2

Affected products

  • nodejs node

Classification

Weakness
  • CWE-208 Observable Timing Discrepancy
Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.