{"id":"GHSA-76c9-3jph-rj3q","summary":"on-headers is vulnerable to http response header manipulation","details":"### Impact\n\nA bug in on-headers versions `\u003c 1.1.0` may result in response headers being inadvertently modified when an array is passed to `response.writeHead()`\n\n### Patches\n\nUsers should upgrade to `1.1.0`\n\n### Workarounds\n\nUses 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.","aliases":["CVE-2025-7339"],"modified":"2026-07-17T21:09:36.066211260Z","published":"2025-07-17T21:17:19Z","database_specific":{"nvd_published_at":"2025-07-17T16:15:35Z","cwe_ids":["CWE-241"],"severity":"LOW","github_reviewed":true,"github_reviewed_at":"2025-07-17T21:17:19Z"},"references":[{"type":"WEB","url":"https://github.com/jshttp/on-headers/security/advisories/GHSA-76c9-3jph-rj3q"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-7339"},{"type":"WEB","url":"https://github.com/expressjs/morgan/issues/315"},{"type":"WEB","url":"https://github.com/jshttp/on-headers/issues/15"},{"type":"WEB","url":"https://github.com/jshttp/on-headers/commit/c6e384908c9c6127d18831d16ab0bd96e1231867"},{"type":"WEB","url":"https://cna.openjsf.org/security-advisories.html"},{"type":"PACKAGE","url":"https://github.com/jshttp/on-headers"}],"affected":[{"package":{"name":"on-headers","ecosystem":"npm","purl":"pkg:npm/on-headers"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.1.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/07/GHSA-76c9-3jph-rj3q/GHSA-76c9-3jph-rj3q.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N"}]}