CVE-2025-7339: jshttp on-headers · CWE-241
Affects jshttp on-headersSource CVE Database V5
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
- 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:NExploitation evidence
Disclosed: evidence found.
CVE published 17 Jul 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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
| Product | Affected | Fixed in |
|---|---|---|
npmon-headerspkg:npm/on-headersOther threats | Affected
| Fixed in
|
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
- github.com/jshttp/on-headers/security/advisories/GHSA-76c9-3jph-rj3q (opens in a new tab)
- github.com/jshttp/on-headers/commit/c6e384908c9c6127d18831d16ab0bd96e1231867 (opens in a new tab)
- cna.openjsf.org/security-advisories.html (opens in a new tab)
- github.com/expressjs/morgan/issues/315 (opens in a new tab)
- github.com/jshttp/on-headers/issues/15 (opens in a new tab)