What’s Vulnerable › Vulnerabilities

CVE-2024-47764: cookie accepts cookie name, path, and domain with out of bounds characters

Description

cookie is a basic HTTP cookie parser and serializer for HTTP servers. The cookie name could be used to set other fields of the cookie, resulting in an unexpected cookie value. A similar escape can be used for path and domain, which could be abused to alter other fields of the cookie. Upgrade to 0.7.0, which updates the validation for name, path, and domain.

Affected products

How to fix

Upgrade to a fixed version: Npm Cookie 0.7.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-47764 or the next vulnerability affects your stack