Skip to content

on-headers (npm)

Execute a listener when a response is about to write headers.

Advisories
2
Latest version
1.1.0
Released Jul 17, 2025
License
MIT
OpenSSF Scorecard
5.6 / 10

How to fix

Upgrading to 1.1.0 or later clears every advisory below that has a fix.

Upgrade commands
npm
npm install on-headers@1.1.0
yarn
yarn add on-headers@1.1.0
pnpm
pnpm add on-headers@1.1.0

Known vulnerabilities

AdvisorySeverityAffectedFixed in
GHSA-76c9-3jph-rj3q
on-headers is vulnerable to http response header manipulation
Low
EPSS 0.21%
< 1.1.0
1.1.0
GHSA-76c9-3jph-rj3q
on-headers is vulnerable to http response header manipulation
Low
EPSS 0.21%
< 1.1.0
1.1.0

Source: git+https://github.com/jshttp/on-headers.git

Is this in your code?

MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.

Check your repos with MergeHarbor