CVE-2023-46229 LangChain Server Side Request Forgery vulnerability

High 8.8 Published Updated

Attackers can exploit Server-Side Request Forgery in LangChain's recursive URL loader to access internal network resources from external servers.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2023-46229?

CVE-2023-46229 is a high-severity server-side request forgery vulnerability in n/a, published on 19 Oct 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

LangChain before 0.0.317 allows SSRF via document_loaders/recursive_url_loader.py because crawling can proceed from an external server to an internal server.

Weakness: CWE-918

Which versions are affected by CVE-2023-46229?

3 open source packages ship an affected version, including langchain. It affects 1 product.

PackageAffectedFixed in
langchain PyPIAll versions0.0.317
langchain PyPIAll versions0.0.317
langchain PyPIAll versions0.0.317

Products include Langchain Langchain.

How do I fix CVE-2023-46229?

Upgrade langchain to 0.0.317 or later.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2023-46229 being exploited?

There is no known exploitation of CVE-2023-46229 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-655w-fm8m-m478, PYSEC-2023-205.

Is CVE-2023-46229 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free