CVE-2025-7339: on-headers is vulnerable to http response header manipulation
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()
References
- cna.openjsf.org/security-advisories.html
- github.com/advisories/GHSA-76c9-3jph-rj3q
- github.com/expressjs/morgan/issues/315
- github.com/jshttp/on-headers
- github.com/jshttp/on-headers/commit/c6e384908c9c6127d18831d16ab0bd96e1231867
- github.com/jshttp/on-headers/issues/15
- github.com/jshttp/on-headers/security/advisories/GHSA-76c9-3jph-rj3q
- nvd.nist.gov/vuln/detail/CVE-2025-7339
Code Behaviors & Features
Detect and mitigate CVE-2025-7339 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →