JLSEC-2026-1948: A flaw in Node.js HMAC verification uses a non-constant-time comparison when validating user...
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
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
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.
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.
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.