{"answers":{"affected":"2 open source packages ship an affected version, including cookie.","exploited":"There is no known exploitation of CVE-2024-47764 in the wild and no public exploit code.","fix":"Upgrade cookie to 0.7.0 or later.","what":"CVE-2024-47764 is a medium-severity vulnerability in jshttp cookie, published on 4 Oct 2024."},"fix_prompt":"Check this codebase for CVE-2024-47764 and fix it if it is affected.\n\nWhat it is: CVE-2024-47764 is a medium-severity vulnerability in jshttp cookie, published on 4 Oct 2024. \nExploitation: There is no known exploitation of CVE-2024-47764 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- cookie (npm): affected all versions; fixed in 0.7.0\n- cookie (npm): affected all versions; fixed in 0.7.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-47764/ (Markdown: https://insights.sbomify.com/CVE-2024-47764/index.md)","id":"CVE-2024-47764","markdown":"https://insights.sbomify.com/CVE-2024-47764/index.md","name":"CVE-2024-47764","record":{"aliases":["AZL-50067","AZL-50073","AZL-50085","AZL-50094","AZL-50114","CLEANSTART-2026-NQ54168","CLSA-2026-1773879462","CLSA-2026-1773879464","CLSA-2026-1773879466","CLSA-2026-1773879467","CLSA-2026-1774052366","CLSA-2026-1777336757","CLSA-2026-1780447837","CLSA-2026-1780447838","CLSA-2026-1790965371","CLSA-2026-1792573061","DEBIAN-CVE-2024-47764","GHSA-pxg6-pf52-xh8x","MINI-jj3m-4m39-28r4","MINI-q2wx-qcvg-pf4w","ROOT-APP-NPM-CVE-2024-47764","UBUNTU-CVE-2024-47764"],"analysis":null,"analysis_generated_by":null,"assigner":"GitHub_M","cpe":[],"cvss":{"score":6.9,"severity":"medium","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"cookie accepts cookie name, path, and domain with out of bounds characters","id":"CVE-2024-47764","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":null,"year":"2024"},"n_packages":2,"n_references":3,"next":{"headline":"Minecraft MOTD Parser's HtmlGenerator vulnerable to XSS","id":"CVE-2024-47765"},"packages":[{"ecosystem":"npm","fixed":["0.7.0"],"introduced":["0"],"last_affected":[],"package":"cookie","purl":null,"source":"GHSA-pxg6-pf52-xh8x"},{"ecosystem":"npm","fixed":["0.7.0"],"introduced":["0"],"last_affected":[],"package":"cookie","purl":"pkg:npm/cookie","source":"GHSA-pxg6-pf52-xh8x"}],"prev":{"headline":"Wasmtime runtime crash when combining tail calls with trapping imports","id":"CVE-2024-47763"},"products":["cookie"],"published":"2024-10-04","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-10-04","vendors":["jshttp"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2024-47764/"}