CVE-2026-41488
LangChain is a framework for building agents and LLM-powered …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/langchain-ai/langchain/security/advisories/GHSA-r7w7-9xr2-qq2r
- nvd.nist.gov/vuln/detail/CVE-2026-41488
- github.com/advisories/GHSA-r7w7-9xr2-qq2r
- github.com/pypa/advisory-database/tree/main/vulns/langchain-openai/PYSEC-2026-76.yaml
- nvd.nist.gov/vuln/detail/CVE-2026-41488
- cve.org/CVERecord?id=CVE-2026-41488
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.