8.1

CVE-2024-0243: langchain-ai langchain-ai/langchain Server-Side Request Forgery (SSRF)

CVSS: 8.1v3.1HighAnalyzed
AliasesGHSA-h9j7-5xvc-qhg5PYSEC-2024-235PYSEC-2026-1509
Published 24-02-2024Last modified 22-04-2025

Vulnerability summary

CVE-2024-0243 is a high (CVSS 8.1) Server-Side Request Forgery (SSRF) vulnerability in langchain-ai langchain-ai/langchain. EPSS estimates a 0.52% chance of exploitation in the next 30 days, higher than 42.7% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
43/100
0100
Medium · default modelHow is this calculated?
CVSS score
8.1/10
010
High · v3.1 (NVD)
EPSS score
0.52%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1reference

Timeline

  1. 24-02-2024
    PublishedVulnerability first disclosed.
  2. 22-04-2025
    Last modifiedVulnerability information updated.

Description

With the following crawler configuration: ```python from bs4 import BeautifulSoup as Soup url = "https://example.com" loader = RecursiveUrlLoader( url=url, max_depth=2, extractor=lambda x: Soup(x, "html.parser").text ) docs = loader.load() ``` An attacker in control of the contents of `https://example.com` could place a malicious HTML file in there with links like "https://example.completely.different/my_file.html" and the crawler would proceed to download that file as well even though `prevent_outside=True`. https://github.com/langchain-ai/langchain/blob/bf0b3cc0b5ade1fb95a5b1b6fa260e99064c2e22/libs/community/langchain_community/document_loaders/recursive_url_loader.py#L51-L51 Resolved in https://github.com/langchain-ai/langchain/pull/15559

CVSS metrics

4 scores · 3 sources · 2 versions

EPSS trend

Probability

0.52%

Chance of exploitation in the next 30 days

Percentile

43%

Versus all other CVEs

30-day change

0.00 pp

From 0.52% on 19-09-2026

19-09-202619-10-2026
EPSS score
0.52%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (huntr.com)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

PyPI2 products
  • langchain< 0.1.0
  • langchain-exa< bf0b3cc0b5ade1fb95a5b1b6fa260e99064c2e22 | < 0.1.0
Langchain1 product
Langchain-ai1 product

3 vendors · 4 products

References

9 links