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

Published Apr 24, 2026
·
Updated

LangChain is a framework for building agents and LLM-powered applications. Prior to 1.1.14, langchain-openai's urltosize() helper (used by getnumtokensfrommessages 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 Software

2 affected components
pypi/langchain-openai<1.1.14
Langchain langchain-openai<1.1.14

Event History

Apr 24, 2026
CVE Published
via MITRE·08:57 PM
Data Sourced
via MITRE·08:57 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:16 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-41488?

CVE-2026-41488 has been classified as a medium severity vulnerability due to potential SSRF risks.

2

How do I fix CVE-2026-41488?

To mitigate CVE-2026-41488, upgrade langchain-openai to version 1.1.14 or later.

3

What specific component is affected by CVE-2026-41488?

CVE-2026-41488 affects the _url_to_size() helper function within the langchain-openai package.

4

What attack vector does CVE-2026-41488 expose?

CVE-2026-41488 exposes the system to DNS rebinding attacks that could bypass SSRF protection.

5

Is the vulnerability CVE-2026-41488 specific to any software version?

Yes, CVE-2026-41488 is applicable to langchain-openai versions prior to 1.1.14.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203