CVE-2025-23167
npm vulnerability analysis and mitigation

Overview

A medium severity vulnerability was discovered in Node.js 20's HTTP parser (llhttp), identified as CVE-2025-23167. The vulnerability was disclosed on May 14, 2025, affecting Node.js 20.x versions prior to the llhttp v9 upgrade. The flaw allows improper termination of HTTP/1 headers using \r\n\rX instead of the required \r\n\r\n sequence (Node Blog, Wiz Report).

Technical details

The vulnerability stems from improper HTTP header block termination in llhttp, where the parser accepts incorrect termination sequences for HTTP/1 headers. This inconsistency in header termination handling creates a security weakness in the HTTP parsing mechanism. The vulnerability has been assigned a CVSS v3.0 base score of 6.5 (MEDIUM) with the vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N. The issue has been classified under CWE-444 (Inconsistent Interpretation of HTTP Requests) (Wiz Report).

Impact

The vulnerability enables request smuggling attacks, which can allow attackers to bypass proxy-based access controls and submit unauthorized requests. This could potentially lead to unauthorized access to protected resources and exposure of sensitive information. The impact is limited to Node.js 20.x users prior to the llhttp v9 upgrade (Node Blog, Wiz Report).

Mitigation and workarounds

The issue has been resolved by upgrading llhttp to version 9, which enforces correct header termination. Users are advised to update to Node.js v20.19.2 or later versions that include this fix. The fix was released as part of the May 14, 2025 security releases (Node Blog).

Additional resources


SourceThis report was generated using AI

Related npm vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-48387HIGH8.7
  • JavaScriptJavaScript
  • sqlpad
NoYesJun 02, 2025
CVE-2025-23166HIGH7.5
  • npmnpm
  • nodejs:22::nodejs-packaging-bundler
NoYesMay 19, 2025
CVE-2025-23167MEDIUM6.5
  • npmnpm
  • nodejs-16
NoYesMay 19, 2025
CVE-2025-23165LOW3.7
  • npmnpm
  • nodejs:22::nodejs-docs
NoYesMay 19, 2025
CVE-2025-5889LOW2.3
  • JavaScriptJavaScript
  • nodejs:20::nodejs-packaging
NoYesJun 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management