{"id":"CVE-2025-7339","aliases":["CVE-2025-7339","GHSA-76c9-3jph-rj3q"],"related":[],"kind":"vulnerability","state":"published","title":"on-headers vulnerable to http response header manipulation","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nA bug in on-headers versions `< 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"on-headers es un middleware de Node.js que detecta cuándo una respuesta escribe encabezados. Un error en las versiones de on-headers anteriores a la 1.1.0 puede provocar que los encabezados de respuesta se modifiquen accidentalmente al pasar una matriz a `response.writeHead()`. Los usuarios deben actualizar a la versión 1.1.0 para recibir una corrección. Se recomienda encarecidamente actualizar a la versión 1.1.0, pero este problema se puede solucionar pasando un objeto a `response.writeHead()` en lugar de una matriz.","source":"nvd"}],"published":"2025-07-17T15:47:39.680Z","modified":"2026-09-10T03:50:25.957Z","severity":{"scorer":"openjs","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N","score":3.4,"rating":"LOW"},"severities":[{"scorer":"openjs","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N","score":3.4,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N","score":3.4,"rating":"LOW"}],"cwes":["CWE-241"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"1.1.0","status":"affected"}],"vendor":"jshttp","product":"on-headers","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.1.0"}],"ecosystem":"npm","package":"on-headers","purl":"pkg:npm/on-headers","source":"ghsa"}],"references":[{"url":"https://github.com/jshttp/on-headers/security/advisories/GHSA-76c9-3jph-rj3q","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/jshttp/on-headers/commit/c6e384908c9c6127d18831d16ab0bd96e1231867","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://cna.openjsf.org/security-advisories.html","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/expressjs/morgan/issues/315","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/jshttp/on-headers/issues/15","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-7339","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/jshttp/on-headers","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"openjs","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-07-17T20:24:38.580Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-7339","url":"https://www.cve.org/CVERecord?id=CVE-2025-7339","licence":"CVE Terms of Use","modified":"2025-07-17T20:24:47.447Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-76c9-3jph-rj3q","url":"https://github.com/advisories/GHSA-76c9-3jph-rj3q","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:25.957Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-7339","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-7339","licence":"Public domain","modified":"2026-06-17T10:04:45.180Z"}],"updatedAt":"2026-11-25T22:59:01.381Z","epss":{"score":0.00206,"percentile":0.11248,"date":"2026-12-01T12:00:22.000Z"}}