CVE Catalog

CVE-2026-41488

LowCVSS 3.1
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.16%

5th percentile - higher than 5% of all known CVEs

Summary

In langchain-openai, the _url_to_size() helper 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 where a hostname could resolve to a public IP during validation and to a private/localhost IP during the actual fetch. The issue affects versions prior to 1.1.14.

Risk Assessment

An attacker could bypass SSRF protection and force requests to internal resources, potentially leading to data disclosure or interaction with internal services. The risk affects applications using langchain-openai for image token counting.

Recommendation

Update langchain-openai to version 1.1.14 or later. Consider additional network restrictions for applications processing external URLs.

Related vulnerabilities

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS