Server-side Request Forgery (SSRF) Affecting langchain package, versions [,0.0.317)


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.17% (56th 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-LANGCHAIN-6008967
  • published19 Oct 2023
  • disclosed19 Oct 2023
  • creditUnknown

Introduced: 19 Oct 2023

CVE-2023-46229  (opens in a new tab)
CWE-918  (opens in a new tab)

How to fix?

Upgrade langchain to version 0.0.317 or higher.

Overview

langchain is a Building applications with LLMs through composability

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the document_loaders/recursive_url_loader.py function. An attacker can manipulate the server into making HTTP requests to an arbitrary domain by exploiting the server's ability to crawl from an external server to an internal server.

CVSS Scores

version 3.1