Response Header Manipulation Vulnerability in Node.js Middleware from jshttp
CVE-2025-7339
3.4LOW
What is CVE-2025-7339?
The on-headers middleware for Node.js has a vulnerability that may allow response headers to be inadvertently modified when an array is passed to the response.writeHead() method. This issue is present in on-headers versions prior to 1.1.0. Users are strongly advised to upgrade to version 1.1.0, where this issue is addressed. A temporary workaround involves using an object instead of an array when calling response.writeHead(), which can help mitigate the risk.
Affected Version(s)
on-headers 0 < 1.1.0