{"answers":{"affected":"3 open source packages ship an affected version, including langchain-core. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-26013 in the wild and no public exploit code.","fix":"Upgrade langchain-core to 1.2.11 or later.","what":"CVE-2026-26013 is a low-severity server-side request forgery vulnerability in langchain-ai langchain, published on 10 Feb 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-26013 and fix it if it is affected.\n\nWhat it is: CVE-2026-26013 is a low-severity server-side request forgery vulnerability in langchain-ai langchain, published on 10 Feb 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-26013 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- langchain-core (PyPI): affected all versions; fixed in 1.2.11\n- langchain-core (PyPI): affected all versions; fixed in 1.2.11\n- langchain-core (PyPI): affected all versions; fixed in 1.2.11\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-2026-26013/ (Markdown: https://insights.sbomify.com/CVE-2026-26013/index.md)","id":"CVE-2026-26013","markdown":"https://insights.sbomify.com/CVE-2026-26013/index.md","name":"CVE-2026-26013","record":{"aliases":["ECHO-dbfc-d3ff-9463","GHSA-2g6r-c272-w58r","PYSEC-2026-2562"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"LangChain framework","requires_auth":"none","summary":"Attackers can trigger Server-Side Request Forgery in LangChain by providing malicious image URLs during token counting, potentially accessing internal resources.","user_interaction":"not_required","vuln_class":"ssrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"langchain_core","vendor":"langchain"}],"cvss":{"score":3.7,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","version":"3.1"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"description":"LangChain is a framework for building agents and LLM-powered applications. Prior to 1.2.11, the ChatOpenAI.get_num_tokens_from_messages() method fetches arbitrary image_url values without validation when computing token counts for vision-enabled models. This allows attackers to trigger Server-Side Request Forgery (SSRF) attacks by providing malicious image URLs in user input. This vulnerability is fixed in 1.2.11.","ecosystems":["PyPI"],"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":"LangChain affected by SSRF via image_url token counting in ChatOpenAI.get_num_tokens_from_messages","id":"CVE-2026-26013","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"ssrf","year":"2026"},"n_packages":3,"n_references":3,"next":{"headline":"Pion DTLS uses random nonce generation with AES GCM ciphers risks leaking the authentication key","id":"CVE-2026-26014"},"packages":[{"ecosystem":"PyPI","fixed":["1.2.11"],"introduced":["0"],"last_affected":[],"package":"langchain-core","purl":null,"source":"GHSA-2g6r-c272-w58r"},{"ecosystem":"PyPI","fixed":["1.2.11"],"introduced":["0"],"last_affected":[],"package":"langchain-core","purl":"pkg:pypi/langchain-core","source":"GHSA-2g6r-c272-w58r"},{"ecosystem":"PyPI","fixed":["1.2.11"],"introduced":["0"],"last_affected":[],"package":"langchain-core","purl":"pkg:pypi/langchain-core","source":"PYSEC-2026-2562"}],"prev":{"headline":"vaultwarden has Full Cipher Enumeration Ignoring Organization Collection Permissions","id":"CVE-2026-26012"},"products":["langchain"],"published":"2026-02-10","related":[{"cvss_score":9.3,"headline":"LangChain serialization injection vulnerability enables secret extraction in dumps/loads APIs","id":"CVE-2025-68664","kev_date_added":null,"published":"2025-12-23"},{"cvss_score":7.5,"headline":"LangChain Core has Path Traversal vulnerabilites in legacy `load_prompt` functions","id":"CVE-2026-34070","kev_date_added":null,"published":"2026-03-31"},{"cvss_score":5.3,"headline":"LangChain has incomplete f-string validation in prompt templates","id":"CVE-2026-40087","kev_date_added":null,"published":"2026-04-09"}],"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":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"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)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-02-11","vendors":["langchain-ai"]},"summary":"Attackers can trigger Server-Side Request Forgery in LangChain by providing malicious image URLs during token counting, potentially accessing internal resources.","url":"https://insights.sbomify.com/CVE-2026-26013/"}