JLSEC-2026-1948: A flaw in Node.js HMAC verification uses a non-constant-time comparison when validating user...

Published Dec 2, 2026
·
Updated

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 Software

5 affected components
julia/nodejs_16_jll*
julia/nodejs_18_jll*
julia/nodejs_20_jll*
julia/nodejs_22_jll*
julia/libnode_jll*

Event History

Dec 2, 2026
Advisory Published
via OSV·03:31 PM
Data Sourced
via OSV·03:31 PM
DescriptionSeverityAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

Who is realistically exposed to this issue?

Deployments that validate user-provided HMAC signatures in affected Node.js 20.x, 22.x, 24.x, or 25.x versions are the relevant exposure. Exploitation additionally depends on an attacker being able to obtain high-resolution timing measurements.

2

What would an attacker need to exploit the timing oracle?

An attacker must be able to submit signatures for validation and measure response timing with sufficient precision. The timing differences may reveal information proportional to the number of initial HMAC bytes that match.

3

Are the listed Julia Node.js packages all confirmed affected?

The data lists julia/nodejs_16_jll, julia/nodejs_18_jll, julia/nodejs_20_jll, julia/nodejs_22_jll, and julia/libnode_jll as software entries, while the stated affected Node.js release lines are 20.x, 22.x, 24.x, and 25.x. It does not provide package-specific fixed or affected versions for those Julia packages.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203