Packages / on-headers / Security
LowVulnerabilityGHSA-76c9-3jph-rj3qCVE-2025-7339Published 17 Jul 2025
on-headers is vulnerable to http response header manipulation
Your version
Affected releases · on-headers
- 1.x1.0.0 – 1.0.2Fixed in 1.1.0
- 0.0.x0.0.0No fix on this line yet
On 1.x, the newest line:
npm install on-headers@1.1.0Every release on a timeline
1.x
Affected
1.0.0 – 1.0.2
3 releases
Fixed
1.1.0
1 release, latest
0.x
Affected
0.0.0
1 release
What happens
Impact
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()
Patches
Users should upgrade to 1.1.0
Workarounds
Uses are 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.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.