Packages

tough-cookie

6.1.0 · 6 Nov 2026BSD-3-Clause202.3M / weekRepositorynpmAtom feed

Upgrading tough-cookie From 3.0.1 to 4.1.3

5 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 3.0.1Latest6.1.0

Before you upgrade

Tick each one off as you go
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0

Security

Fixes 1 advisory affecting 3.0.1

  • Security fix for Prototype Pollution discovery in #282.

    4.1.3

Release by release

  1. 4.1.3

    Security fix5 Jun 2023
    • Security

      Security fix for Prototype Pollution discovery in #282.

  2. 4.1.2

    25 Aug 20221 fix
    • Fixed

      Allow set cookies with localhost

  3. 4.1.1

    24 Aug 20221 fix
    • Fixed

      Allow special use domains by default

  4. 4.1.0

    22 Aug 20221 new · 6 fixes
    • 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

  5. 4.0.0

    Migration needed19 Mar 20205 new
    • Breaking

      Upgraded version dependencies for psl and async

    • Breaking

      Re-order parameters for findCookies() - callback fn has to be last in order to comply with universalify

    • Breaking

      Use Classes instead of function prototypes to define classes

    • New

      SameSite cookie support

17 other lines we could not sort, mostly version bumps
  • 4.1.1 Patch -- allow special use domains by default

    4.1.1
  • 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.

    4.1.0

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.