Skip to main content
← All vulnerabilities
CVE-2025-7339GHSA-76C9-3JPH-RJ3Q

on-headers vulnerable to http response header manipulation

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.1.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • jshttp on-headers

    fixed in 1.1.0

  • on-headersnpm

    fixed in 1.1.0

References 5

GitHub · jshttp/on-headers

cna.openjsf.org

GitHub · expressjs/morgan