CVE-2026-41488Langchain-openai
Low 3.1 No auth needed
Follow: this CVE · Langchain · Langchain-openai We alert you by email or Slack (account required).
- Priority
- 34
- CVSS 3.1
- 3.1
- EPSS
- —
- Auth required
- No
- Published
- Apr 24, 2026
- Updated
- Oct 26, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-918
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N
What happens
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
- Apply the vendor's security update for Langchain-openai.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | langchain-openai |
< 1.1.14 |
1.1.14 |
pip install "langchain-openai>=1.1.14" |
| PyPI | langchain-openai |
< 1.1.14 |
1.1.14 |
pip install "langchain-openai>=1.1.14" |
Per OSV / GitHub Advisories (GHSA-r7w7-9xr2-qq2r, PYSEC-2026-76). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| langchain | langchain-openai | < 1.1.14 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Mitigation Vendor Advisory