# CVE-2026-41488: angchain-openai: Image token counting SSRF protection can be bypassed via DNS rebinding

> CVE-2026-41488: angchain-openai: Image token counting SSRF protection can be bypassed via DNS rebinding. CVSS 3.1 (CVSS 3.1).

Canonical: https://rewindex.com/cve/CVE-2026-41488
Last updated: 2026-06-17T10:46:47Z

- Published: 2026-04-24 20:57 UTC · Updated: 2026-06-17 10:46 UTC · Assigner: GitHub\_M
- CVSS: 3.1 (CVSS 3.1) · Severity: Low · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N
- EPSS: 0.16%, 5th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: CWE-918

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

## Affected vendors and products

- langchain-ai: langchain-openai

## Tracked companies

- [LangChain (LangSmith)](https://rewindex.com/company/langchain-langsmith.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2026-41488)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2026-41488)
- [https://github.com/langchain-ai/langchain/security/advisories/GHSA-r7w7-9xr2-qq2r](https://github.com/langchain-ai/langchain/security/advisories/GHSA-r7w7-9xr2-qq2r)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2026-41488 · Markdown: https://rewindex.com/cve/CVE-2026-41488.md · JSON: https://rewindex.com/api/v1/cves/CVE-2026-41488 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T02:16:22.856Z
