Vulnerability
CVE-2025-7339
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.
162 advisories report this vulnerability, across 8 ecosystems.
Advisories in Wolfi
- CGA-2558-cm37-538v
- CGA-2j7p-mxr2-g7gr
- CGA-34cv-6c5h-x5p5
- CGA-3h45-rj27-cp62
- CGA-42pm-x4h5-3xpv
- CGA-45jr-w57p-q9xh
- CGA-46m2-cc3x-2v97
- CGA-46pj-q9h3-8mf3
- CGA-48w6-xjjv-ff2j
- CGA-4wv3-2gx5-h24x
- CGA-5jc9-m5hv-39q9
- CGA-688p-crxp-gmg5
- CGA-6hwv-9h3h-5fjp
- CGA-723p-6gjg-58q6
- CGA-8499-gv6w-vp59
- CGA-8c9v-rcg4-68j9
- CGA-9hrf-26gr-8jcg
- CGA-cv75-x7wr-mxgp
- CGA-cv87-c6pg-hchc
- CGA-f4p7-xwqq-4526
- CGA-f83w-pxc6-p7c3
- CGA-f9m8-m8mm-p243
- CGA-fcx3-fc8g-36mm
- CGA-fv3c-7cj7-92pw
- CGA-g4wp-cg36-wrxc
- CGA-gcr2-hxmr-47cp
- CGA-gj7c-6vfg-w575
- CGA-gq8r-6j96-655p
- CGA-jv65-rv2f-r6qv
- CGA-jvw3-w6fp-xg9q
- CGA-mcgx-7ghj-f7pg
- CGA-mmgv-8vp8-qq7r
- CGA-p2vh-wq2q-9jx2
- CGA-pghp-vpc4-6pq6
- CGA-pv47-2hj4-2c22
- CGA-qjmg-vr8f-49c5
- CGA-qp88-79pp-x9fq
- CGA-qx92-8fq4-hj86
- CGA-r4q6-jx4h-jf7j
- CGA-r5vq-776w-w5x6
- CGA-r8cq-g94p-56c9
- CGA-rf82-vpvm-qf6c
- CGA-vc49-v83p-m352
- CGA-vg83-q6v4-m3fw
- CGA-w75c-f2h2-v6jp
- CGA-w7f8-wrgv-7p43
- CGA-w97m-3qwg-2xm7
- CGA-x2gw-cfch-p67x
- CGA-xg7q-mxx6-pwpc
- CGA-xvc8-q6v5-rvpq
References
- 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