CVE-2026-41488

Low

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.

SeverityLow
CVSS3.1
Exploit probability—
ProductLangchain-openai
PublishedApr 24, 2026
First seenApr 24, 2026

How to fix

Update
  • langchain langchain-openai1.1.14 or later
  • langchain-openai1.1.14 or later

Affected products

ProductAffected versionsFixed in
langchain langchain-openaiv < 1.1.141.1.14
langchain-openaiPyPIv < 1.1.141.1.14

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.