Skip to content

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

MediumCVSS 6.9 EPSS 0.74%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
UbuntuDebian

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.

Upgrade path

8 packages: 4 fixed, 3 with no fix yet.

PackageAffectedFixed inStatus
debian/node-cookie(Debian 12) = 0.5.0-2; = 0.6.0+~0.6.0-1; = 0.6.0-1; = 0.7.1+~0.6.0-1 +2 more No fix listed No fix yet
ubuntu/node-cookie(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/node-cookie(Ubuntu 24.04) All versions No fix listed No fix yet
debian/node-cookie(Debian 13) < 0.7.1+~0.6.0-1 0.7.1+~0.6.0-1 Fixed
debian/node-cookie(Debian 14) < 0.7.1+~0.6.0-1 0.7.1+~0.6.0-1 Fixed
Microsoft cbl mariner < 3.1.1-13 3.1.1-13 Fixed
npm cookie(npm) < 0.7.0 0.7.0 Fixed
jshttp cookie = < 0.7.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
Microsoft cbl mariner < 3.1.1-13 3.1.1-13
debian/node-cookie(Debian:12) All versions No fix listed
debian/node-cookie(Debian:12) = 0.5.0-2 No fix listed
debian/node-cookie(Debian:12) = 0.6.0+~0.6.0-1 No fix listed
debian/node-cookie(Debian:12) = 0.6.0-1 No fix listed
debian/node-cookie(Debian:12) = 0.7.1+~0.6.0-1 No fix listed
debian/node-cookie(Debian:12) = 0.7.2+~0.6.0-1 No fix listed
debian/node-cookie(Debian:13) < 0.7.1+~0.6.0-1 0.7.1+~0.6.0-1
debian/node-cookie(Debian:14) < 0.7.1+~0.6.0-1 0.7.1+~0.6.0-1
npm cookie(npm) < 0.7.0 0.7.0
ubuntu/node-cookie(Ubuntu:22.04) All versions No fix listed
jshttp cookie = < 0.7.0 No fix listed
ubuntu/node-cookie(Ubuntu:24.04) All versions No fix listed

References