CVE-2025-7339
JavaScript vulnerability analysis and mitigation

Overview

A vulnerability has been identified in the on-headers node.js middleware package (CVE-2025-7339), which is used for listening to when a response writes headers. The bug affects versions prior to 1.1.0 and may result in response headers being inadvertently modified when an array is passed to response.writeHead(). The vulnerability was discovered and disclosed on July 17, 2025 (OpenJS Advisory).

Technical details

The vulnerability stems from inconsistent handling of array-formatted headers in the setHeadersFromArray function. The function incorrectly processes headers in a 2D array format, which conflicts with NodeJS Http documentation specifications. When res.writeHead is used with onHeaders and the headers argument is in 2D array format, it can lead to header manipulation issues. The vulnerability has been assigned a CVSS v3.1 base score of 3.4 (LOW) with the vector string CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N (NVD).

Impact

When exploited, this vulnerability can result in HTTP response header manipulation, potentially leading to security implications where headers are incorrectly processed or modified. The impact is considered low due to the limited scope of the vulnerability and the requirement for local access (GHSA Advisory).

Mitigation and workarounds

Users are strongly encouraged to upgrade to version 1.1.0 which contains the fix for this vulnerability. As a temporary workaround, users can pass an object to response.writeHead() rather than an array. The fix has been implemented in version 1.1.0 through proper handling of array-formatted headers (Security Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-62610HIGH8.1
  • JavaScriptJavaScript
  • hono
NoYesOct 22, 2025
CVE-2025-59837HIGH7.2
  • JavaScriptJavaScript
  • astro
NoYesOct 28, 2025
CVE-2025-62713HIGH7.2
  • JavaScriptJavaScript
  • @kottster/server
NoYesOct 23, 2025
GHSA-q7jf-gf43-6x6pMEDIUM6.5
  • JavaScriptJavaScript
  • hono
NoYesOct 24, 2025
CVE-2025-62517MEDIUM5.9
  • JavaScriptJavaScript
  • rollbar
NoYesOct 23, 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