fix: update cookie dependency to ^0.7.0 to address CVE-2024-47764#960
Closed
keith-oak wants to merge 1 commit intoAzure:mainfrom
keith-oak:fix-cookie-vulnerability-cve-2024-47764
Closed
fix: update cookie dependency to ^0.7.0 to address CVE-2024-47764#960keith-oak wants to merge 1 commit intoAzure:mainfrom keith-oak:fix-cookie-vulnerability-cve-2024-47764
keith-oak wants to merge 1 commit intoAzure:mainfrom
keith-oak:fix-cookie-vulnerability-cve-2024-47764
Conversation
Updates the cookie package from ^0.5.0 to ^0.7.0 to fix a critical security vulnerability (CVE-2024-47764) that allows malicious cookie values to inject unexpected key-value pairs into JavaScript objects. The vulnerability could allow attackers to inject special properties like __proto__, constructor, or prototype through malicious cookie values. Cookie 0.7.0 includes proper validation to prevent these injection attacks while maintaining backward compatibility.
This was referenced Jun 24, 2025
LongOddCode
added a commit
that referenced
this pull request
Apr 21, 2026
cookie < 0.7.0 is vulnerable to CVE-2024-47764 (CVSS 9.1, Critical): malicious cookie values can inject unexpected object keys like __proto__/constructor/prototype, enabling prototype pollution. Resolved to cookie@0.7.2 in the lockfile. The package's serialize()/parse() signatures used in src/core/utils/cookie.ts are unchanged in 0.7.x, so this is a drop-in replacement. Reviving the fix after the prior attempts (#960, #962) were closed without explanation; issue #932 is still open. The additional lockfile churn is npm's standard peer-marker drift when regenerating the tree — no other package versions changed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
cookiepackage from ^0.5.0 to ^0.7.0 to fix CVE-2024-47764cookie < 0.7.0#932Details
This PR updates the cookie dependency to version 0.7.0 which includes proper validation to prevent malicious cookie values from injecting special properties like
__proto__,constructor, orprototypeinto JavaScript objects.The vulnerability (CVE-2024-47764) is rated as critical with a CVSS score of 9.1/10 and could allow attackers to perform prototype pollution attacks through specially crafted cookie values.
Changes Made
cookiefrom ^0.5.0 to ^0.7.0 in package.jsonnpm installto update package-lock.json accordinglyTesting
npm test)npm run build)References
cookie < 0.7.0#932: Vulnerable dependencycookie < 0.7.0