CVE-2025-7339
published low CVSS 3.1 · 3.4on-headers vulnerable to http response header manipulation
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| jshttp | — | on-headers0 to < 1.1.0 · Other versions: unaffected | Affected | Not stated | openjs |
| SUSE / openSUSE | openSUSE-Leap-16.0 | agama-web-uinoarch | Advisory build | 17+612.d8bf69336-160000.11.1 | OPENSUSE-SU-2026:20919-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 3.4 / 10
- Severity
- low
- Provider
- openjs · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| jshttp | on-headers | 0 to < 1.1.0 (affected · semver)Default: unaffected | openjs · cna |
Weaknesses
1- CWE-241
References
5- https://cna.openjsf.org/security-advisories.html
- https://github.com/expressjs/morgan/issues/315
- https://github.com/jshttp/on-headers/commit/c6e384908c9c6127d18831d16ab0bd96e1231867
- https://github.com/jshttp/on-headers/issues/15
- https://github.com/jshttp/on-headers/security/advisories/GHSA-76c9-3jph-rj3q
Provider assertions
2openjs · cna
on-headers vulnerable to http response header manipulation
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 1e36e2aa4157d6c0f584561fb2f916f4650c37dea50161b35b0ec20969c0bf84
- Ingested
- 23 Sep 2026, 08:58:27 UTC
- Source record
- Official CVE record