Skip to main content
CVE-2025-7339VulnerabilityPublished

CVE-2025-7339: jshttp on-headers · CWE-241

Affects jshttp on-headersSource CVE Database V5

0

Not known to be exploited · CVSS 3.4 Low : upgrade to 1.1.0 when convenient.

Data as of 26 Oct 2026, 06:26 UTC

CVSS 3.1 base score
3.4Low
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 10% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 1.1.0
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 17 Jul 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.

What to do

Upgrade jshttp on-headers to 1.1.0.

Affected software

ProductAffectedFixed in
npmon-headerspkg:npm/on-headersOther threatsAffected
  • <1.1.0
Fixed in
  • 1.1.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

To mitigate CVE-2025-7339, European organizations should take the following specific actions: 1) Audit all Node.js applications and services to identify usage of the on-headers middleware, especially versions prior to 1.1.0. 2) Upgrade on-headers to version 1.1.0 or later, which contains the patch addressing this vulnerability. 3) Review application code to ensure that response.writeHead() is never called with an array argument; refactor code to always use an object for headers. 4) Implement automated code scanning or static analysis tools to detect improper usage patterns of response.writeHead() and middleware versions. 5) Conduct thorough testing of HTTP response headers after upgrades or code changes to verify that headers are correctly set and no unintended modifications occur. 6) Enforce strict access controls and monitoring on systems with privileged accounts to reduce the risk of exploitation requiring high privileges. 7) Incorporate this vulnerability into the organization's vulnerability management and patching processes to ensure timely updates. These steps go beyond generic advice by focusing on code-level review, automated detection, and privileged access management tailored to this specific vulnerability.

Description

on-headers is a node.js middleware for listening to when a response writes headers. A bug in on-headers versions `<1.1.0` may result in response headers being inadvertently modified when an array is passed to `response.writeHead()`. Users should upgrade to version 1.1.0 to receive a patch. Uses are strongly encouraged to upgrade to `1.1.0`, but this issue can be worked around by passing an object to `response.writeHead()` rather than an array.

References

Community reviews

Loading reviews…