on-headers vulnerable to http response header manipulation (jshttp on-headers)

CVE-2025-7339
LOW 3.4

At a glance

Source
NVD
EPSS
EPSS 0.21 % · percentile 11 ()
State
PUBLISHED
Published
Updated
Assigner
openjs
NVD status
Deferred

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.

Weaknesses (CWE)

  • CWE-241 — Improper Handling of Unexpected Data Type

References

Scores

VersionScoreVectorScored by
CVSS 3.1LOW 3.4CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:Nopenjs
CVSS 3.1LOW 3.4CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:NNVD · ce714d77-add3-4f53-aff5-83d477b104bb (Secondary)

Advisories

European references

CERT-FR advisories

Affected products

ProductVersions
jshttp · on-headersaffected 0 < 1.1.0

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD