{"id":"CVE-2025-7339","published":"2025-07-17T15:47:39Z","modified":"2025-07-17T20:24:47Z","title":"on-headers vulnerable to http response header manipulation","vendor":"jshttp","product":"on-headers","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.4,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00206,"percentile":0.10841,"provenance":"source"},"cwes":[{"id":"CWE-241","name":"Improper Handling of Unexpected Data Type"}],"references":[{"url":"https://github.com/jshttp/on-headers/security/advisories/GHSA-76c9-3jph-rj3q","tags":[]},{"url":"https://github.com/jshttp/on-headers/commit/c6e384908c9c6127d18831d16ab0bd96e1231867","tags":[]},{"url":"https://cna.openjsf.org/security-advisories.html","tags":[]},{"url":"https://github.com/expressjs/morgan/issues/315","tags":[]},{"url":"https://github.com/jshttp/on-headers/issues/15","tags":[]}],"priority":{"score":4.5,"factors":[{"name":"EPSS percentile","points":2.17},{"name":"CVSS severity","points":2.38}]},"vendorSlug":"jshttp","affectedVersions":[{"vendor":"jshttp","product":"on-headers","versions":["< 1.1.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-07-17T20:24:38.580125Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"on-headers","vulnerableRanges":["<1.1.0"],"patched":["1.1.0"],"from":["GHSA-76c9-3jph-rj3q"],"provenance":"source"}],"summary":{"text":"The on-headers npm package (jshttp), a Node.js middleware for detecting when a response writes headers, is flawed in versions below 1.1.0: passing an array to response.writeHead() can cause response headers to be inadvertently modified. An attacker needs local access with high privileges, and the issue is only triggered when the application passes an array to writeHead(), with the workaround being to pass an object instead.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:21:50Z"},"euvd":{"id":"EUVD-2025-21784","exploited":false,"provenance":"source"}}