CVE-2024-47764
MEDIUM 6.9CVSS 4.0cookie accepts cookie name, path, and domain with out of bounds characters
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.
- Published
- 4 Oct 2024
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-74
- Also known as
- GHSA-pxg6-pf52-xh8x
- Sources
- NVDJSONOSV GHSA-pxg6-pf52-xh8xJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 6.9 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | cookie | < 0.7.0 | 0.7.0 |
References
- https://github.com/jshttp/cookie/commit/e10042845354fea83bd8f34af72475eed1dadf5c · WEB
- https://github.com/jshttp/cookie/pull/167 · WEB
- https://github.com/jshttp/cookie/security/advisories/GHSA-pxg6-pf52-xh8x · WEB
- https://github.com/jshttp/cookie · PACKAGE
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 4 Oct 2024)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 4 Oct 2024)