{"answers":{"affected":"2 open source packages ship an affected version, including tough-cookie. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-26136 exists.","fix":"Upgrade tough-cookie to 4.1.3 or later.","what":"CVE-2023-26136 is a medium-severity vulnerability in tough-cookie, published on 1 Jul 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-26136 and fix it if it is affected.\n\nWhat it is: CVE-2023-26136 is a medium-severity vulnerability in tough-cookie, published on 1 Jul 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-26136 exists.\n\nAffected packages and fixed versions:\n- tough-cookie (npm): affected all versions; fixed in 4.1.3\n- tough-cookie (npm): affected all versions; fixed in 4.1.3\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-2023-26136/ (Markdown: https://insights.sbomify.com/CVE-2023-26136/index.md)","id":"CVE-2023-26136","markdown":"https://insights.sbomify.com/CVE-2023-26136/index.md","name":"CVE-2023-26136","record":{"aliases":["AZL-43684","AZL-44556","CLEANSTART-2026-ZC18850","CLSA-2026-1773274553","CLSA-2026-1773274554","CLSA-2026-1773274558","CLSA-2026-1776818217","CLSA-2026-1792791719","DEBIAN-CVE-2023-26136","DLA-3488-1","GHSA-72xf-g2v4-qvf3","MGASA-2024-0080","MINI-353m-2c88-2935","MINI-67c3-m3v2-5jj9","OESA-2023-1930","OESA-2023-1952","ROOT-APP-NPM-CVE-2023-26136","UBUNTU-CVE-2023-26136"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":true,"product_category":"Node.js cookie library","requires_auth":"none","summary":"Prototype pollution in tough-cookie allows attackers to manipulate object prototypes, potentially leading to code execution or privilege escalation.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"snyk","cpe":[{"product":"tough-cookie","vendor":"salesforce"}],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N/E:P","version":"3.1"},"cwes":[{"id":"CWE-1321","name":"Improperly Controlled Modification of Object Prototype Attributes"}],"description":"Versions of the package tough-cookie before 4.1.3 are vulnerable to Prototype Pollution due to improper handling of Cookies when using CookieJar in rejectPublicSuffixes=false mode. This issue arises from the manner in which the objects are initialized.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2023-12-04","github_poc":7,"max_poc_stars":1,"metasploit":0,"nuclei":0,"refs":[{"date":"2023-12-04T13:01:29Z","kind":"github_poc","ref":"https://github.com/CUCUMBERanOrSNCompany/SealSecurityAssignment","stars":1,"title":"Researching on the vulnrability CVE-2023-26136"},{"date":"2024-05-06T17:32:10Z","kind":"github_poc","ref":"https://github.com/ronmadar/Open-Source-Seal-Security","stars":0,"title":"Fix open source package uses tough-cookie 2.5.0 - CVE-2023-26136,"},{"date":"2024-09-02T18:50:53Z","kind":"github_poc","ref":"https://github.com/m-lito13/SealSecurity_Exam","stars":0,"title":"Fix prototype pollution vulnerability (CVE-2023-26136) for tough-cookie package"},{"date":"2025-02-04T10:58:02Z","kind":"github_poc","ref":"https://github.com/dani33339/Tough-Cookie-v2.5.0-Patched","stars":0,"title":"CVE-2023-26136 vulnerability research"},{"date":"2025-02-07T20:05:21Z","kind":"github_poc","ref":"https://github.com/morrisel/CVE-2023-26136","stars":0,"title":"This repository contains a solution for the CVE-2023-26136 vulnerability."},{"date":"2025-06-18T07:27:26Z","kind":"github_poc","ref":"https://github.com/uriyahav/tough-cookie-2.5.0-cve-2023-26136-fix","stars":0,"title":"ecurity patch for CVE-2023-26136 in tough-cookie 2.5.0 - Prototype pollution vulnerability fix with backward compatibility"},{"date":"2025-07-28T18:01:14Z","kind":"github_poc","ref":"https://github.com/guy2610/tough-cookie-patch-cve-2023-26136","stars":0,"title":null}],"tier":"weaponised"},"has_fix":true,"headline":"tough-cookie Prototype Pollution vulnerability","id":"CVE-2023-26136","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"other","year":"2023"},"n_packages":2,"n_references":8,"next":{"headline":"Other in drogonframework/drogon","id":"CVE-2023-26137"},"packages":[{"ecosystem":"npm","fixed":["4.1.3"],"introduced":["0"],"last_affected":[],"package":"tough-cookie","purl":null,"source":"GHSA-72xf-g2v4-qvf3"},{"ecosystem":"npm","fixed":["4.1.3"],"introduced":["0"],"last_affected":[],"package":"tough-cookie","purl":"pkg:npm/tough-cookie","source":"GHSA-72xf-g2v4-qvf3"}],"prev":{"headline":"flatnest Prototype Pollution vulnerability","id":"CVE-2023-26135"},"products":["tough-cookie"],"published":"2023-07-01","related":[{"cvss_score":7.5,"headline":"Regular Expression Denial of Service in tough-cookie","id":"CVE-2017-15010","kev_date_added":null,"published":"2017-10-03"}],"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":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-08-27","vendors":["n/a"]},"summary":"Prototype pollution in tough-cookie allows attackers to manipulate object prototypes, potentially leading to code execution or privilege escalation.","url":"https://insights.sbomify.com/CVE-2023-26136/"}