Server-Side Request Forgery (SSRF) Affecting langchain-core package, versions [,0.1.7)


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.06% (29th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Server-Side Request Forgery (SSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-LANGCHAINCORE-6274518
  • published25 Feb 2024
  • disclosed24 Feb 2024
  • creditMokrane Abdelmalek

Introduced: 24 Feb 2024

CVE-2024-0243  (opens in a new tab)
CWE-918  (opens in a new tab)

How to fix?

Upgrade langchain-core to version 0.1.7 or higher.

Overview

langchain-core is a Building applications with LLMs through composability

Affected versions of this package are vulnerable to Server-Side Request Forgery (SSRF) in document_loaders/recursive_url_loader.py. An attacker in control of the contents of a specified URL could place a malicious HTML file there with links to completely different domains, and the crawler would proceed to issue GET requests from it, even though it is configured to prevent requests from outside sources. This is a bypass for the previously reported CVE-2023-46229.

References

CVSS Scores

version 3.1