PT-2026-35087 · Pypi · Langchain-Openai

Deprrous

·

Published

2026-04-16

·

Updated

2026-04-25

·

CVE-2026-41488

CVSS v3.1

3.1

Low

VectorAV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N
Name of the Vulnerable Software and Affected Versions langchain-openai versions prior to 1.1.14
Description The url to size() helper function, utilized by get num tokens from messages for image token counting, contains a Time-of-Check to Time-of-Use (TOCTOU) flaw. The function validates URLs for Server-Side Request Forgery (SSRF) protection and subsequently fetches them using a separate network operation with independent DNS resolution. This creates a DNS rebinding window where an attacker-controlled hostname can resolve to a public IP during the validation phase and then resolve to a private or localhost IP during the actual fetch operation.
Recommendations Update to version 1.1.14 or later.

Fix

SSRF

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-41488
GHSA-R7W7-9XR2-QQ2R
PYSEC-2026-76

Affected Products

Langchain-Openai