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

- Severity: Low 3.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-04-16T23:00:12.000Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-r7w7-9xr2-qq2r, PYSEC-2026-76
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- langchain-ai langchain-openai: < 1.1.14
- langchain-openai (PyPI): before 1.1.14
- langchain langchain-openai: before 1.1.14

## Every score

- GitHub_M: CVSS:3.1 3.1 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 3.1 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 3.1 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N`

## References

- <https://github.com/langchain-ai/langchain/security/advisories/GHSA-r7w7-9xr2-qq2r> (advisory, mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-41488> (advisory)
- <https://github.com/langchain-ai/langchain> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/langchain-openai/PYSEC-2026-76.yaml> (web)

## Sources

- CVE List: [CVE-2026-41488](https://www.cve.org/CVERecord?id=CVE-2026-41488), CVE Terms of Use, modified 2026-04-27
- GitHub Advisory Database: [GHSA-r7w7-9xr2-qq2r](https://github.com/advisories/GHSA-r7w7-9xr2-qq2r), CC-BY-4.0, modified 2026-06-06
- NVD: [CVE-2026-41488](https://nvd.nist.gov/vuln/detail/CVE-2026-41488), Public domain, modified 2026-10-26
- PyPA Advisory Database: [PYSEC-2026-76](https://osv.dev/vulnerability/PYSEC-2026-76), CC-BY-4.0, modified 2026-05-20

---

Page: https://cve.day/CVE-2026-41488 · Whole record: https://cve.day/CVE-2026-41488.json · Rebuilt by cve.day 2026-11-25T22:59:19.587Z
