# CVE-2026-41488

> Vulnerability · severity: **LOW** (CVSS 3.1).

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

## Key facts

- **CVE ID:** CVE-2026-41488
- **Published:** 2026-04-24
- **CVSS severity:** LOW
- **CVSS base score:** 3.1
- **CWE codes:** CWE-918

## Affected products

- `langchain:langchain-openai`

## Primary sources

- NIST NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-41488

## Citation

> AI Analytics. CVE-2026-41488. Retrieved 2026-07-28 from https://api.ai-analytics.org/cve/CVE-2026-41488. Derived from NIST NVD. Licensed CC0.

---

*[Dataset catalog](https://api.ai-analytics.org/datasets/) · [AI Analytics](https://api.ai-analytics.org/) · CC0 1.0*