LangChain affected by SSRF via image_url token counting in ChatOpenAI.get_num_tokens_from_messages
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| langchain-ai | langchain | affected |
|
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Langchain-ai | Langchain |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-2g6r-c272-w58r | LangChain affected by SSRF via image_url token counting in ChatOpenAI.get_num_tokens_from_messages |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.424% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Langchain
Langchain langchain Core |
|
| CPEs | cpe:2.3:a:langchain:langchain_core:*:*:*:*:*:python:*:* | |
| Vendors & Products |
Langchain
Langchain langchain Core |
| Type | Values Removed | Values Added |
|---|---|---|
| References |
| |
| Metrics |
threat_severity
|
threat_severity
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Langchain-ai
Langchain-ai langchain |
|
| Vendors & Products |
Langchain-ai
Langchain-ai langchain |
|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| Description | LangChain is a framework for building agents and LLM-powered applications. Prior to 1.2.11, the ChatOpenAI.get_num_tokens_from_messages() method fetches arbitrary image_url values without validation when computing token counts for vision-enabled models. This allows attackers to trigger Server-Side Request Forgery (SSRF) attacks by providing malicious image URLs in user input. This vulnerability is fixed in 1.2.11. | |
| Title | LangChain affected by SSRF via image_url token counting in ChatOpenAI.get_num_tokens_from_messages | |
| Weaknesses | CWE-918 | |
| References |
| |
| Metrics |
cvssV3_1
|