Skip to content
OpenAdvisories
Medium · 5.9 CVE-2026-21713 EUVD-2026-17174GHSA-6r7g-3mm3-fhw7

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

Published Mar 30, 2026 · Updated May 10, 2026 · 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**.

Affected products

VendorProductAffectedFixed
nodejs node 20.20.1 – ≤ 20.20.1, 22.22.1 – ≤ 22.22.1, 24.14.0 – ≤ 24.14.0, 25.8.1 – ≤ 25.8.1, 4.0 – < 4.*, 5.0 – < 5.*, 6.0 – < 6.*, 7.0 – < 7.*, 8.0 – < 8.*, 9.0 – < 9.*, 10.0 – < 10.*, 11.0 – < 11.*, 12.0 – < 12.*, 13.0 – < 13.*, 14.0 – < 14.*, 15.0 – < 15.*, 16.0 – < 16.*, 17.0 – < 17.*, 18.0 – < 18.*, 19.0… 4.*

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 nodejs 22.22.2+dfsg+~cs22.19.15-1 —
Debian 13 nodejs 20.19.2+dfsg-1+deb13u2 DSA-6183-1
Debian 12 nodejs 18.20.4+dfsg-1~deb12u2 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 nodejs No fix yet —
Ubuntu 26.04 LTS nodejs No fix yet —
Ubuntu 25.10 nodejs No fix yet —
Ubuntu 24.04 LTS nodejs No fix yet —
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 22.04 LTS nodejs No fix yet —
Ubuntu Pro 20.04 LTS nodejs No fix yet —
Ubuntu Pro 18.04 LTS nodejs No fix yet —
Ubuntu Pro 16.04 LTS nodejs No fix yet —
Ubuntu Pro 14.04 LTS nodejs No fix yet —
ReleasePackageFixed inAdvisory
RHEL 10 nodejs24 +4 1:24.14.1-2.el10_1 RHSA-2026:7675
RHEL 10 nodejs24-npm 1:11.11.0-1.24.14.1.2.el10_1 RHSA-2026:7675
RHEL 9 nodejs +4 1:24.14.1-2.module+el9.7.0+24166+51c9666b RHSA-2026:7350
RHEL 9 nodejs-nodemon 3.0.3-3.module+el9.7.0+24166+51c9666b RHSA-2026:7350
RHEL 9 nodejs-packaging +1 2021.06-6.module+el9.7.0+24166+51c9666b RHSA-2026:7350
RHEL 9 npm 1:11.11.0-1.24.14.1.2.module+el9.7.0+24166+51c9666b RHSA-2026:7350
RHEL 9 v8-13.6-devel 3:13.6.233.17-1.24.14.1.2.module+el9.7.0+24166+51c9666b RHSA-2026:7350
RHEL 8 nodejs +4 1:24.14.1-2.module+el8.10.0+24190+49a46c75 RHSA-2026:7670
RHEL 8 nodejs-nodemon 3.0.3-1.module+el8.10.0+24190+49a46c75 RHSA-2026:7670
RHEL 8 nodejs-packaging +1 2021.06-6.module+el8.10.0+24190+49a46c75 RHSA-2026:7670
RHEL 8 npm 1:11.11.0-1.24.14.1.2.module+el8.10.0+24190+49a46c75 RHSA-2026:7670
RHEL 8 v8-13.6-devel 3:13.6.233.17-1.24.14.1.2.module+el8.10.0+24190+49a46c75 RHSA-2026:7670

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 10 nodejs24-docs 1:24.14.1-2.el10_1 ALSA-2026:7675
AlmaLinux 10 nodejs24-npm 1:11.11.0-1.24.14.1.2.el10_1 ALSA-2026:7675
AlmaLinux 9 nodejs +4 1:24.14.1-2.module_el9.7.0+222+ef1c61e1 ALSA-2026:7350
AlmaLinux 9 nodejs-nodemon 3.0.3-3.module_el9.7.0+209+ecf6523e ALSA-2026:7350
AlmaLinux 9 nodejs-packaging 2021.06-6.module_el9.7.0+209+ecf6523e ALSA-2026:7350
AlmaLinux 9 nodejs-packaging-bundler 2021.06-6.module_el9.7.0+198+8bf605ba ALSA-2026:7350
AlmaLinux 9 npm 1:11.11.0-1.24.14.1.2.module_el9.7.0+222+ef1c61e1 ALSA-2026:7350
AlmaLinux 9 v8-13.6-devel 3:13.6.233.17-1.24.14.1.2.module_el9.7.0+222+ef1c61e1 ALSA-2026:7350
AlmaLinux 8 nodejs +4 1:24.14.1-2.module_el8.10.0+4160+4819ac42 ALSA-2026:7670
AlmaLinux 8 nodejs-nodemon 3.0.3-1.module_el8.10.0+4061+f8ceeab9 ALSA-2026:7670
AlmaLinux 8 nodejs-packaging +1 2021.06-6.module_el8.10.0+4086+70facd4a ALSA-2026:7670
AlmaLinux 8 npm 1:11.11.0-1.24.14.1.2.module_el8.10.0+4160+4819ac42 ALSA-2026:7670
AlmaLinux 8 v8-13.6-devel 3:13.6.233.17-1.24.14.1.2.module_el8.10.0+4160+4819ac42 ALSA-2026:7670

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 10 nodejs24 1:24.14.1-2.el10_1 RLSA-2026:7675
Rocky Linux 9 nodejs-nodemon 3.0.3-3.module+el9.7.0+40025+0e0cf6b2 RLSA-2026:7350
Rocky Linux 9 nodejs-packaging 2021.06-6.module+el9.7.0+40052+e32ea525 RLSA-2026:7350
Rocky Linux 8 nodejs-nodemon 3.0.3-1.module+el8.10.0+2084+ab509703 RLSA-2026:7670
Rocky Linux 8 nodejs-packaging 2021.06-6.module+el8.10.0+40048+6d99f608 RLSA-2026:7670
ReleasePackageFixed inAdvisory
SLES 15 SP7 nodejs22 22.22.2-150700.3.9.1 SUSE-SU-2026:1478-1
SLES 15 SP7 nodejs24 24.14.1-150700.15.8.1 SUSE-SU-2026:1299-1
SLES 15 SP6 nodejs20 20.20.2-150600.3.18.1 SUSE-SU-2026:1363-1
SLES 15 SP6 nodejs22 22.22.2-150600.13.15.1 SUSE-SU-2026:1509-1
SLES 15 SP5 nodejs18 18.20.8-150400.9.39.1 SUSE-SU-2026:4261-1
SLES 15 SP5 nodejs20 20.20.2-150500.11.27.1 SUSE-SU-2026:1371-1
SLES 15 SP4 nodejs16 16.20.2-150400.3.42.1 SUSE-SU-2026:4355-1
SLES 15 SP4 nodejs18 18.20.8-150400.9.39.1 SUSE-SU-2026:4261-1
SLES 12 SP5 nodejs18 18.20.8-8.44.1 SUSE-SU-2026:4248-1
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 nodejs22 22.23.0-160000.1.1 SUSE-SU-2026:22368-1
SLES for SAP 16.0 nodejs24 24.14.1-160000.1.1 SUSE-SU-2026:21181-1
SLES for SAP 15 SP6 nodejs20 20.20.2-150600.3.18.1 SUSE-SU-2026:1363-1
SLES for SAP 15 SP6 nodejs22 22.22.2-150600.13.15.1 SUSE-SU-2026:1509-1
SLES for SAP 15 SP5 nodejs18 18.20.8-150400.9.39.1 SUSE-SU-2026:4261-1
SLES for SAP 15 SP5 nodejs20 20.20.2-150500.11.27.1 SUSE-SU-2026:1371-1
SLES for SAP 15 SP4 nodejs16 16.20.2-150400.3.42.1 SUSE-SU-2026:4355-1
SLES for SAP 15 SP4 nodejs18 18.20.8-150400.9.39.1 SUSE-SU-2026:4261-1
SLES 16.0 nodejs22 22.23.0-160000.1.1 SUSE-SU-2026:22368-1
SLES 16.0 nodejs24 24.14.1-160000.1.1 SUSE-SU-2026:21181-1
SLE HPC 15 SP5 nodejs18 18.20.8-150400.9.39.1 SUSE-SU-2026:4261-1
SLE HPC 15 SP5 nodejs20 20.20.2-150500.11.27.1 SUSE-SU-2026:1371-1
SLE HPC 15 SP4 nodejs16 16.20.2-150400.3.42.1 SUSE-SU-2026:4355-1
SLE HPC 15 SP4 nodejs18 18.20.8-150400.9.39.1 SUSE-SU-2026:4261-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed nodejs24 24.14.1-1.1 openSUSE-SU-2026:10504-1
openSUSE Tumbleweed nodejs26 26.3.1-1.1 openSUSE-SU-2026:11110-1
openSUSE Leap 16.0 nodejs22 22.23.0-160000.1.1 openSUSE-SU-2026:21058-1
openSUSE Leap 16.0 nodejs24 24.14.1-160000.1.1 openSUSE-SU-2026:20519-1
ReleasePackageFixed inAdvisory
Alpine v3.24 nodejs 24.14.1-r0 —
Alpine v3.23 nodejs 24.14.1-r0 —
Alpine v3.22 nodejs 22.22.2-r0 —
Alpine v3.21 nodejs 22.22.2-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 nodejs20 +4 1:20.20.2-1.amzn2023.0.1 ALAS2023-2026-1577
Amazon Linux 2023 nodejs20-npm 1:10.8.2-1.20.20.2.1.amzn2023.0.1 ALAS2023-2026-1577
Amazon Linux 2023 nodejs22 +4 1:22.22.2-1.amzn2023.0.1 ALAS2023-2026-1576
Amazon Linux 2023 nodejs22-npm 1:10.9.7-1.22.22.2.1.amzn2023.0.1 ALAS2023-2026-1576
Amazon Linux 2023 nodejs24 +4 1:24.14.1-1.amzn2023.0.1 ALAS2023-2026-1578
Amazon Linux 2023 nodejs24-npm 1:11.11.0-1.24.14.1.1.amzn2023.0.1 ALAS2023-2026-1578
Amazon Linux 2023 v8-11.3-devel 3:11.3.244.8-1.20.20.2.1.amzn2023.0.1 ALAS2023-2026-1577
Amazon Linux 2023 v8-12.4-devel 3:12.4.254.21-1.22.22.2.1.amzn2023.0.1 ALAS2023-2026-1576
Amazon Linux 2023 v8-13.6-devel 3:13.6.233.17-1.24.14.1.1.amzn2023.0.1 ALAS2023-2026-1578

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 nodejs 20.14.0-15 —
Azure Linux 3 nodejs24 24.14.1-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 10 nodejs24 +4 1:24.14.1-2.0.2.el10_1 ELSA-2026-7675
Oracle Linux 10 nodejs24-npm 1:11.11.0-1.24.14.1.2.0.2.el10_1 ELSA-2026-7675
Oracle Linux 9 nodejs +4 1:24.14.1-2.module+el9.7.0+90866+5a953a4c ELSA-2026-7350
Oracle Linux 9 nodejs-nodemon 3.0.3-3.module+el9.7.0+90866+5a953a4c ELSA-2026-7350
Oracle Linux 9 nodejs-packaging +1 2021.06-6.module+el9.7.0+90866+5a953a4c ELSA-2026-7350
Oracle Linux 9 npm 1:11.11.0-1.24.14.1.2.module+el9.7.0+90866+5a953a4c ELSA-2026-7350
Oracle Linux 9 v8-13.6-devel 3:13.6.233.17-1.24.14.1.2.module+el9.7.0+90866+5a953a4c ELSA-2026-7350
Oracle Linux 8 nodejs +4 1:24.14.1-2.module+el8.10.0+90873+35652ecc ELSA-2026-7670
Oracle Linux 8 nodejs-nodemon 3.0.3-1.module+el8.10.0+90873+35652ecc ELSA-2026-7670
Oracle Linux 8 nodejs-packaging +1 2021.06-6.module+el8.10.0+90873+35652ecc ELSA-2026-7670
Oracle Linux 8 npm 1:11.11.0-1.24.14.1.2.module+el8.10.0+90873+35652ecc ELSA-2026-7670
Oracle Linux 8 v8-13.6-devel 3:13.6.233.17-1.24.14.1.2.module+el8.10.0+90873+35652ecc ELSA-2026-7670

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling nodejs-16 +3 No fix yet —
Wolfi rolling nodejs-22 22.22.3-r0 —

Advisories 31

References