# CVE-2025-7339: on-headers vulnerable to http response header manipulation

- Severity: Low 3.4 (CVSS:3.1, scored by openjs) `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2025-07-17T15:47:39.680Z
- Modified: 2026-09-10T03:50:25.957Z
- Also known as: GHSA-76c9-3jph-rj3q
- Weaknesses: CWE-241
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: openjs

## 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.

(As written by CVE List.)

## Affected

- jshttp on-headers: before 1.1.0
- on-headers (npm): before 1.1.0

## Every score

- openjs: CVSS:3.1 3.4 Low `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 3.4 Low `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N`

## References

- <https://github.com/jshttp/on-headers/security/advisories/GHSA-76c9-3jph-rj3q> (web)
- <https://github.com/jshttp/on-headers/commit/c6e384908c9c6127d18831d16ab0bd96e1231867> (web)
- <https://cna.openjsf.org/security-advisories.html> (web)
- <https://github.com/expressjs/morgan/issues/315> (web)
- <https://github.com/jshttp/on-headers/issues/15> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-7339> (advisory)
- <https://github.com/jshttp/on-headers> (package)

## Sources

- CVE List: [CVE-2025-7339](https://www.cve.org/CVERecord?id=CVE-2025-7339), CVE Terms of Use, modified 2025-07-17
- GitHub Advisory Database: [GHSA-76c9-3jph-rj3q](https://github.com/advisories/GHSA-76c9-3jph-rj3q), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-7339](https://nvd.nist.gov/vuln/detail/CVE-2025-7339), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-7339 · Whole record: https://cve.day/CVE-2025-7339.json · Rebuilt by cve.day 2026-11-25T22:59:01.381Z
