Live threats

All CVEs / Langchain

CVE-2026-26013Langchain Core

Low 3.7 No auth needed

Priority
37
CVSS 3.1
3.7
EPSS
—
Auth required
No
Published
Feb 10, 2026
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-918
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Langchain Core.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI langchain-core < 1.2.11 1.2.11 pip install "langchain-core>=1.2.11"
PyPI langchain-core < 1.2.11 1.2.11 pip install "langchain-core>=1.2.11"

Per OSV / GitHub Advisories (GHSA-2g6r-c272-w58r, PYSEC-2026-2562). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
langchainlangchain_core< 1.2.11

Official sources

References

Links published by the sources. Open them with care.