CVE Explorer
CVE-2026-41488
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.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"langchain-openai","vendor":"langchain-ai","versions":[{"status":"affected","version":"< 1.1.14"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:f0ed305376fa2b2a6f3eaf1707b849d82a301c289e8dee31a84c91fbc613a29a · sha256:7d61af105c8194de… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":3.1,"baseSeverity":"LOW","confidentialityImpact":"LOW","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:f0ed305376fa2b2a6f3eaf1707b849d82a301c289e8dee31a84c91fbc613a29a · sha256:7d61af105c8194de… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-918","description":"CWE-918: Server-Side Request Forgery (SSRF)","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:f0ed305376fa2b2a6f3eaf1707b849d82a301c289e8dee31a84c91fbc613a29a · sha256:7d61af105c8194de… · /containers/cna/problemTypes/0/descriptions/0
Source references
1 source assertion{"name":"https://github.com/langchain-ai/langchain/security/advisories/GHSA-r7w7-9xr2-qq2r","tags":["x_refsource_CONFIRM"],"url":"https://github.com/langchain-ai/langchain/security/advisories/GHSA-r7w7-9xr2-qq2r"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:f0ed305376fa2b2a6f3eaf1707b849d82a301c289e8dee31a84c91fbc613a29a · sha256:7d61af105c8194de… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.