Patchfirst
CVE-2023-46229 Public exploit EPSS 43.1%

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.

Fix:upgrade langchain to 0.0.317 or later Details ↓

Summary

The flaw is a server-side request forgery (SSRF) in LangChain versions before 0.0.317, located in the recursive URL loader component (document_loaders/recursive_url_loader.py). An attacker can abuse the loader's crawling behaviour to proceed from an external server to internal servers.

Heading is the official description · CVE.org
Breakdown
62.0 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

First seen exploited 22 months after disclosure. Public exploit code (PoC-in-GitHub) appeared 2 years after disclosure.

  1. Disclosedday 0
  2. First seen exploitedVulnCheck KEV evidence+22 mo
  3. Public exploit codePoC-in-GitHub+2 yrs

7 fixes in langchain over 8 months. The latest fix listed for langchain is 0.0.353.

Fixes in langchainPyPI package, by fixed version. Earlier and later fixes in the same package, not necessarily the same bug.

  1. 0.0.247CVE-2023-3886015 Aug 2023
  2. 0.0.308CVE-2023-396311 Sep 2023
  3. 0.0.312CVE-2023-3628122 Aug 2023
  4. 0.0.317CVE-2023-4622919 Oct 2023
  5. 0.0.325CVE-2023-3965915 Aug 2023
  6. 0.0.329CVE-2023-3278620 Oct 2023
  7. 0.0.353CVE-2024-357116 Apr 2024Latest listed

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: langchain.

Upgrade to 0.0.317 or later

pippip install "langchain>=0.0.317"

The first fix for CVE-2023-46229. No other CVE tracked by Patchfirst affects this package.

Affected versions

If you runUpgrade to
All versions before 0.0.3170.0.317

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

References

2 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close