Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. on-headers
  4. ›
  5. CVE-2025-7339

CVE-2025-7339: on-headers is vulnerable to http response header manipulation

July 17, 2025

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()

References

  • cna.openjsf.org/security-advisories.html
  • github.com/advisories/GHSA-76c9-3jph-rj3q
  • github.com/expressjs/morgan/issues/315
  • github.com/jshttp/on-headers
  • github.com/jshttp/on-headers/commit/c6e384908c9c6127d18831d16ab0bd96e1231867
  • github.com/jshttp/on-headers/issues/15
  • github.com/jshttp/on-headers/security/advisories/GHSA-76c9-3jph-rj3q
  • nvd.nist.gov/vuln/detail/CVE-2025-7339

Code Behaviors & Features

Detect and mitigate CVE-2025-7339 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.1.0

Fixed versions

  • 1.1.0

Solution

Upgrade to version 1.1.0 or above.

Impact 3.4 LOW

CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-241: Improper Handling of Unexpected Data Type

Source file

npm/on-headers/CVE-2025-7339.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:19:00 +0000.