{"id":"CVE-2025-7339","state":"PUBLISHED","title":"on-headers vulnerable to http response header manipulation","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.","publishedAt":"2025-07-17T15:47:39.680Z","updatedAt":"2025-07-17T20:24:47.447Z","severity":{"score":3.4,"label":"Low","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N","source":"openjs"},"assigner":"openjs","products":["jshttp on-headers"],"affected":[{"vendor":"jshttp","product":"on-headers","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.1.0","versionType":"semver"}]}],"references":["https://github.com/jshttp/on-headers/security/advisories/GHSA-76c9-3jph-rj3q","https://github.com/jshttp/on-headers/commit/c6e384908c9c6127d18831d16ab0bd96e1231867","https://cna.openjsf.org/security-advisories.html","https://github.com/expressjs/morgan/issues/315","https://github.com/jshttp/on-headers/issues/15"],"weaknesses":["CWE-241"],"ingestedAt":"2026-10-29T20:10:04.440Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/7xxx/CVE-2025-7339.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-7339","state":"PUBLISHED","datePublished":"2025-07-17T15:47:39.680Z","dateUpdated":"2025-07-17T20:24:47.447Z","assignerShortName":"openjs","assignerOrgId":"ce714d77-add3-4f53-aff5-83d477b104bb","dateReserved":"2025-07-07T20:01:14.812Z"},"containers":{"cna":{"title":"on-headers vulnerable to http response header manipulation","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"jshttp","product":"on-headers","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.1.0","versionType":"semver"}]}],"references":[{"url":"https://github.com/jshttp/on-headers/security/advisories/GHSA-76c9-3jph-rj3q"},{"url":"https://github.com/jshttp/on-headers/commit/c6e384908c9c6127d18831d16ab0bd96e1231867"},{"url":"https://cna.openjsf.org/security-advisories.html"},{"url":"https://github.com/expressjs/morgan/issues/315"},{"url":"https://github.com/jshttp/on-headers/issues/15"}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"NONE","baseScore":3.4,"baseSeverity":"LOW","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"HIGH","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N","version":"3.1"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-241","description":"CWE-241","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"openjs","orgId":"ce714d77-add3-4f53-aff5-83d477b104bb","dateUpdated":"2025-07-17T15:47:39.680Z"},"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"Vulnogram 0.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-07-17T20:24:38.580125Z","id":"CVE-2025-7339","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-07-17T20:24:47.447Z"}}]}}}