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.
History

Tue, 28 Apr 2026 18:30:00 +0000

Type Values Removed Values Added
First Time appeared Langchain
Langchain langchain-openai
CPEs cpe:2.3:a:langchain:langchain-openai:*:*:*:*:*:*:*:*
Vendors & Products Langchain
Langchain langchain-openai

Tue, 28 Apr 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-367
References
Metrics threat_severity

None

threat_severity

Low


Mon, 27 Apr 2026 20:30:00 +0000

Type Values Removed Values Added
First Time appeared Langchain-ai
Langchain-ai langchain
Vendors & Products Langchain-ai
Langchain-ai langchain

Mon, 27 Apr 2026 14:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 24 Apr 2026 21:15:00 +0000

Type Values Removed Values Added
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.
Title angchain-openai: Image token counting SSRF protection can be bypassed via DNS rebinding
Weaknesses CWE-918
References
Metrics cvssV3_1

{'score': 3.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published: 2026-04-24T20:57:25.658Z

Updated: 2026-04-27T13:40:42.065Z

Reserved: 2026-04-20T16:14:19.007Z

Link: CVE-2026-41488

cve-icon Vulnrichment

Updated: 2026-04-27T13:40:38.447Z

cve-icon NVD

Status : Analyzed

Published: 2026-04-24T21:16:19.637

Modified: 2026-04-28T18:17:09.553

Link: CVE-2026-41488

cve-icon Redhat

Severity : Low

Publid Date: 2026-04-24T20:57:25Z

Links: CVE-2026-41488 - Bugzilla