fix: update cookie dependency to ^0.7.0 to address CVE-2024-47764 #960
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
cookie
package 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
, orprototype
into 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
cookie
from ^0.5.0 to ^0.7.0 in package.jsonnpm install
to update package-lock.json accordinglyTesting
npm test
)npm run build
)References
cookie < 0.7.0
#932: Vulnerable dependencycookie < 0.7.0