CVE-2025-7339: Node on headers · on-headers is a node.js middleware for listening to when a response writes headers
Affects node-on-headersSource GCVE Database
Not known to be exploited · CVSS 3.4 Low · fixed in 1.1.0 : update node-on-headers when convenient.
Data as of 24 Nov 2026, 21:15 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
Weaponized: 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 24 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10node-on-headerspkg:deb/ubuntu/node-on-headers?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSnode-on-headerspkg:deb/ubuntu/node-on-headers?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 25.10node-on-headerspkg:deb/ubuntu/node-on-headers?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSnode-on-headerspkg:deb/ubuntu/node-on-headers?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSnode-on-headerspkg:deb/ubuntu/node-on-headers?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 20.04 LTSnode-on-headerspkg:deb/ubuntu/node-on-headers?arch=source&distro=focalOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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
- ubuntu.com/security/CVE-2025-7339 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-7339 (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/security/advisories/GHSA-76c9-3jph-rj3q (opens in a new tab)