{"answers":{"affected":"2 open source packages ship an affected version, including on-headers.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-7339 exists.","fix":"Upgrade on-headers to 1.1.0 or later.","what":"CVE-2025-7339 is a low-severity vulnerability in jshttp on-headers, published on 17 Jul 2025. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-7339 and fix it if it is affected.\n\nWhat it is: CVE-2025-7339 is a low-severity vulnerability in jshttp on-headers, published on 17 Jul 2025. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-7339 exists.\n\nAffected packages and fixed versions:\n- on-headers (npm): affected all versions; fixed in 1.1.0\n- on-headers (npm): affected all versions; fixed in 1.1.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-7339/ (Markdown: https://insights.sbomify.com/CVE-2025-7339/index.md)","id":"CVE-2025-7339","markdown":"https://insights.sbomify.com/CVE-2025-7339/index.md","name":"CVE-2025-7339","record":{"aliases":["CLEANSTART-2026-DT32496","CLEANSTART-2026-KX85997","CLSA-2026-1774916715","DEBIAN-CVE-2025-7339","GHSA-76c9-3jph-rj3q","MINI-2rrj-rgvv-662x","MINI-7q7c-9j29-58m3","UBUNTU-CVE-2025-7339"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Node.js middleware","requires_auth":"high_privilege","summary":"An attacker can manipulate HTTP response headers by passing an array to writeHead, potentially altering application behavior or security controls.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"openjs","cpe":[],"cvss":{"score":3.4,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-241","name":"Improper Handling of Unexpected Data Type"}],"description":"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"on-headers vulnerable to http response header manipulation","id":"CVE-2025-7339","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"other","year":"2025"},"n_packages":2,"n_references":5,"next":{"headline":"File upload in HT Contact Form – Drag \u0026 Drop Form Builder for WordPress","id":"CVE-2025-7340"},"packages":[{"ecosystem":"npm","fixed":["1.1.0"],"introduced":["0"],"last_affected":[],"package":"on-headers","purl":null,"source":"GHSA-76c9-3jph-rj3q"},{"ecosystem":"npm","fixed":["1.1.0"],"introduced":["0"],"last_affected":[],"package":"on-headers","purl":"pkg:npm/on-headers","source":"GHSA-76c9-3jph-rj3q"}],"prev":{"headline":"Multer vulnerable to Denial of Service via unhandled exception from malformed request","id":"CVE-2025-7338"},"products":["on-headers"],"published":"2025-07-17","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-07-17","vendors":["jshttp"]},"summary":"An attacker can manipulate HTTP response headers by passing an array to writeHead, potentially altering application behavior or security controls.","url":"https://insights.sbomify.com/CVE-2025-7339/"}