Vulnerability · Published Oct 4, 2024 · Assigned by GitHub_M

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

Medium 6.9

In plain English

A medium-severity injection in cookie from jshttp. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 55% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)6.9Medium
Exploit odds (30 days)0.7%top 45.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12node-cookieno fix listedDEBIAN-CVE-2024-47764
Debian:13node-cookie0.7.1+~0.6.0-1DEBIAN-CVE-2024-47764
Debian:14node-cookie0.7.1+~0.6.0-1DEBIAN-CVE-2024-47764
Ubuntu:22.04:LTSnode-cookieno fix listedUBUNTU-CVE-2024-47764
Ubuntu:24.04:LTSnode-cookieno fix listedUBUNTU-CVE-2024-47764
npmcookie0.7.0GHSA-pxg6-pf52-xh8x

Affected products (as reported)

VendorProductVersions
jshttp cookie < 0.7.0

Weakness: CWE-74 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

References