CVEfocus › CVE database › CVE-2025-7339

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

CVSS 3.4 LowEPSS 0.3% (higher than 11% of CVEs)Published 2025-07-17Updated 2025-07-17Assigner: openjs

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.

CWE-241

What to do

Fixed builds are available from Debian, npm: see the table below for the fixed version per release.

Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fixed
9Fix pending
3Under investigation
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10node-on-headersFix pendingUBUNTU-CVE-2025-7339
Ubuntu 26.04node-on-headersUnder investigationUBUNTU-CVE-2025-7339
Ubuntu 25.10node-on-headersWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2025-7339
Ubuntu 24.04node-on-headersUnder investigationUBUNTU-CVE-2025-7339
Ubuntu 22.04node-on-headersUnder investigationUBUNTU-CVE-2025-7339
Ubuntu 20.04node-on-headersFix pendingUBUNTU-CVE-2025-7339
Ubuntu 18.04node-on-headersFix pendingUBUNTU-CVE-2025-7339
Ubuntu 16.04node-on-headersFix pendingUBUNTU-CVE-2025-7339
Debian 14node-on-headersFixed1.0.2-4DEBIAN-CVE-2025-7339
Debian 13node-on-headersFixed1.0.2-4DEBIAN-CVE-2025-7339
Debian 12node-on-headersFix pendingDEBIAN-CVE-2025-7339
Red Hat Enterprise Linux 9pcsFix pending
Fix deferred
Red Hat Enterprise Linux 9pcs-snmpFix pending
Fix deferred
Red Hat Enterprise Linux 8pcsFix pending
Fix deferred
Red Hat Enterprise Linux 8pcs-snmpFix pending
Fix deferred
npm libraryon-headersFixed1.1.0GHSA-76c9-3jph-rj3q

What the vendor says

As published in the CVE record by openjs, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.