lowCVSS 3.1NVD status: Analyzed

CVE-2026-41488

LangChain is a framework for building agents and LLM-powered applications.

ComponentLangChain
Severitylow (CVSS 3.1)
CVSS vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N
Published (NVD)2026-04-24
Last modified2026-06-17
Affected versions
langchain-openai < 1.1.14
Fixed in1.1.14
WeaknessCWE-918
CISA KEVnot listed

NVD description

LangChain is a framework for building agents and LLM-powered applications. Prior to 1.1.14, langchain-openai's _url_to_size() helper (used by get_num_tokens_from_messages for image token counting) validated URLs for SSRF protection and then fetched them in a separate network operation with independent DNS resolution. This left a TOCTOU / DNS rebinding window: an attacker-controlled hostname could resolve to a public IP during validation and then to a private/localhost IP during the actual fetch.

Does CVE-2026-41488 hit the version you run?Paste your docker-compose.yml, requirements.txt or package.json. The scanner checks your pinned versions against this CVE and every other one we track for LangChain.
Check my stack

What to do

  • Upgrade LangChain to 1.1.14 or later.
  • Do not expose the component's API or UI to the internet without authentication in front of it.

Sources

Other LangChain CVEs

All LangChain CVEs