{"id":"CVE-2026-41488","state":"PUBLISHED","title":"angchain-openai: Image token counting SSRF protection can be bypassed via DNS rebinding","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.","publishedAt":"2026-04-24T20:57:25.658Z","updatedAt":"2026-04-27T13:40:42.065Z","severity":{"score":3.1,"label":"Low","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["langchain-ai langchain-openai"],"affected":[{"vendor":"langchain-ai","product":"langchain-openai","versions":[{"version":"< 1.1.14","status":"affected"}]}],"references":["https://github.com/langchain-ai/langchain/security/advisories/GHSA-r7w7-9xr2-qq2r"],"weaknesses":["CWE-918"],"ingestedAt":"2026-10-29T20:11:57.932Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/41xxx/CVE-2026-41488.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-41488","state":"PUBLISHED","datePublished":"2026-04-24T20:57:25.658Z","dateUpdated":"2026-04-27T13:40:42.065Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-04-20T16:14:19.007Z"},"containers":{"cna":{"title":"angchain-openai: Image token counting SSRF protection can be bypassed via DNS rebinding","descriptions":[{"lang":"en","value":"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":[{"vendor":"langchain-ai","product":"langchain-openai","versions":[{"version":"< 1.1.14","status":"affected"}]}],"references":[{"url":"https://github.com/langchain-ai/langchain/security/advisories/GHSA-r7w7-9xr2-qq2r","name":"https://github.com/langchain-ai/langchain/security/advisories/GHSA-r7w7-9xr2-qq2r","tags":["x_refsource_CONFIRM"]}],"metrics":[{"cvssV3_1":{"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"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-918","lang":"en","description":"CWE-918: Server-Side Request Forgery (SSRF)","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-04-24T20:57:25.658Z"},"source":{"advisory":"GHSA-r7w7-9xr2-qq2r","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-04-27T13:40:34.758273Z","id":"CVE-2026-41488","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-04-27T13:40:42.065Z"}}]}}}