tough-cookie
6.1.0 · 6 Nov 2026BSD-3-Clause202.3M / weekRepositorynpmAtom feed
Upgrading tough-cookie From 1.2.0 to 4.1.3
20 releases in betweennotes for 5
Reading releases, release notes and advisories…
Counted from 5 of 20 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
Security
Fixes 3 advisories affecting 1.2.0
- tough-cookie Prototype Pollution vulnerabilitymoderate · GHSA-72xf-g2v4-qvf3
- Regular Expression Denial of Service in tough-cookiehigh · GHSA-g7q5-pjjr-gqvp
- ReDoS via long string of semicolons in tough-cookiemoderate · GHSA-qhv9-728r-6jqg
- 4.1.3
Security fix for Prototype Pollution discovery in #282.
Release by release
- Security
Security fix for Prototype Pollution discovery in #282.
- Security
- Fixed
Allow set cookies with localhost
- Fixed
- Fixed
Allow special use domains by default
- Fixed
- New
Add explanation and more special-use domains
- Fixed
Fix for issue #195
- Fixed
Fix permuteDomain with trailing dot
- Fixed
MemoryCookieStore methods should exist on the prototype, not on the class.
- Fixed
Domain match routine
- Fixed
Stop using the internal NodeJS punycode module
- Fixed
Distinguish between no samesite and samesite=none
- New
- Breaking
Upgraded version dependencies for
pslandasync - Breaking
Re-order parameters for
findCookies()- callback fn has to be last in order to comply withuniversalify - Breaking
Use Classes instead of function prototypes to define classes
- New
SameSite cookie support
- Breaking
2.0.0 – 3.0.115 releases, no release note
17 other lines we could not sort, mostly version bumps
- 4.1.1
4.1.1 Patch -- allow special use domains by default
- 4.1.0
Create CHANGELOG.md
- 4.1.0
Missing param validation issue145
- 4.1.0
Create SECURITY.md
- 4.1.0
Create CODE_OF_CONDUCT.md
- 4.1.0
Sync of constructor options for serialization
- 4.1.0
Returned null in case of empty cookie value
- 4.1.0
132 str trim not a function
- 4.1.0
Issue #213 -- added gh-actions flow for building and testing tough-co…
- 4.1.0
Issue #210 -- Updated workflow to use npm install.
2 internal lines (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.