CVE-2026-26013
LangChain is a framework for building agents and LLM-powered …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/langchain-ai/langchain/commit/2b4b1dc29a833d4053deba4c2b77a3848c834565
- github.com/langchain-ai/langchain/releases/tag/langchain-core%3D%3D1.2.11
- github.com/langchain-ai/langchain/security/advisories/GHSA-2g6r-c272-w58r
- nvd.nist.gov/vuln/detail/CVE-2026-26013
- github.com/advisories/GHSA-2g6r-c272-w58r
- nvd.nist.gov/vuln/detail/CVE-2026-26013
- cve.org/CVERecord?id=CVE-2026-26013
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.