{"id":"UBUNTU-CVE-2025-7339","details":"on-headers is a node.js middleware for listening to when a response writes headers. A bug in on-headers versions `\u003c1.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.","modified":"2026-05-20T16:24:00.744802425Z","published":"2025-07-17T16:15:00Z","upstream":["CVE-2025-7339"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-7339"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-7339"},{"type":"REPORT","url":"https://cna.openjsf.org/security-advisories.html"},{"type":"REPORT","url":"https://github.com/expressjs/morgan/issues/315"},{"type":"REPORT","url":"https://github.com/jshttp/on-headers/security/advisories/GHSA-76c9-3jph-rj3q"}],"affected":[{"package":{"name":"node-on-headers","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/node-on-headers?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.0-1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.0.0-1","binary_name":"node-on-headers"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-7339.json"}},{"package":{"name":"node-on-headers","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/node-on-headers?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.0-1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.0.0-1","binary_name":"node-on-headers"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-7339.json"}},{"package":{"name":"node-on-headers","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/node-on-headers?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.1-1","1.0.2-1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.0.2-1","binary_name":"node-on-headers"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-7339.json"}},{"package":{"name":"node-on-headers","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/node-on-headers?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.2-1","1.0.2-2"],"ecosystem_specific":{"binaries":[{"binary_version":"1.0.2-2","binary_name":"node-on-headers"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-7339.json"}},{"package":{"name":"node-on-headers","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/node-on-headers?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.2-2"],"ecosystem_specific":{"binaries":[{"binary_version":"1.0.2-2","binary_name":"node-on-headers"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-7339.json"}},{"package":{"name":"node-on-headers","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/node-on-headers?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.2-2","1.0.2-4"],"ecosystem_specific":{"binaries":[{"binary_version":"1.0.2-4","binary_name":"node-on-headers"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-7339.json"}},{"package":{"name":"node-on-headers","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/node-on-headers?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.2-4"],"ecosystem_specific":{"binaries":[{"binary_version":"1.0.2-4","binary_name":"node-on-headers"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-7339.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N"},{"type":"Ubuntu","score":"medium"}]}