GHSA-76c9-3jph-rj3q

Suggest an improvement
Source
https://github.com/advisories/GHSA-76c9-3jph-rj3q
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/07/GHSA-76c9-3jph-rj3q/GHSA-76c9-3jph-rj3q.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-76c9-3jph-rj3q
Aliases
Published
2025-07-17T21:17:19Z
Modified
2025-07-17T21:44:33.423834Z
Severity
  • 3.4 (Low) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N CVSS Calculator
Summary
on-headers is vulnerable to http response header manipulation
Details

Impact

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

Patches

Users should upgrade to 1.1.0

Workarounds

Uses are 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.

Database specific
{
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-241"
    ],
    "severity": "LOW",
    "github_reviewed_at": "2025-07-17T21:17:19Z",
    "nvd_published_at": "2025-07-17T16:15:35Z"
}
References

Affected packages

npm / on-headers

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.1.0