Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-21713: Vulnerability in nodejs node

0
Medium
VulnerabilityCVE-2026-21713cvecve-2026-21713
Published: Mon Mar 30 2026 (03/30/2026, 19:07:28 UTC)
Source: CVE Database V5
Vendor/Project: nodejs
Product: node

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

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/11/2026, 01:44:40 UTC

Technical Analysis

This vulnerability in Node.js arises from the use of a non-constant-time comparison function when validating user-provided HMAC signatures. Because the comparison duration varies with the number of matching bytes, an attacker capable of precise timing measurements could exploit this behavior to gradually infer the correct HMAC value. The issue affects multiple Node.js versions including 20.x, 22.x, 24.x, and 25.x. Node.js typically uses timing-safe comparison functions in other parts of its codebase, suggesting this is an unintentional flaw. The CVSS score is 5.9 (medium severity), reflecting the network attack vector, high complexity, no privileges required, no user interaction, and confidentiality impact only. No patch or vendor advisory is currently provided.

Potential Impact

The vulnerability allows an attacker to potentially leak information about HMAC values through timing side channels, which could compromise the confidentiality of the HMAC. There is no indication of impact on integrity or availability. Exploitation requires the ability to perform high-resolution timing measurements, which may limit practical exploitation scenarios. No known exploits in the wild have been reported.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should be aware of the potential timing leak in HMAC verification and consider mitigating risk by limiting attacker ability to perform precise timing measurements or by applying application-level mitigations. Avoid relying solely on the affected Node.js versions for critical HMAC verification where timing attacks are a concern.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
hackerone
Date Reserved
2026-01-04T15:00:06.574Z
Cvss Version
3.0
State
PUBLISHED

Threat ID: 69cacda7e6bfc5ba1d6188a8

Added to database: 3/30/2026, 7:23:19 PM

Last enriched: 5/11/2026, 1:44:40 AM

Last updated: 5/15/2026, 10:52:22 AM

Views: 153

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses