Skip to content

cookie (npm)

HTTP server cookie parsing and serialization

Advisories
1
Latest version
2.0.1
Released Jun 30, 2026
License
MIT
OpenSSF Scorecard
8.2 / 10

How to fix

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

Upgrade commands
npm
npm install cookie@2.0.1
yarn
yarn add cookie@2.0.1
pnpm
pnpm add cookie@2.0.1

Known vulnerabilities

AdvisorySeverityAffectedFixed in
GHSA-pxg6-pf52-xh8x
cookie accepts cookie name, path, and domain with out of bounds characters
Medium
EPSS 0.74%
< 0.7.0
0.7.0

Source: git+https://github.com/jshttp/cookie.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