CVE-2024-0243: Server-side Request Forgery In Recursive URL Loader

Published Feb 24, 2024
·
Updated

With the following crawler configuration:

python from bs4 import BeautifulSoup as Soup

url = "https://example.com" loader = RecursiveUrlLoader( url=url, maxdepth=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/myfile.html" and the crawler would proceed to download that file as well even though preventoutside=True.

https://github.com/langchain-ai/langchain/blob/bf0b3cc0b5ade1fb95a5b1b6fa260e99064c2e22/libs/community/langchaincommunity/documentloaders/recursiveurlloader.py#L51-L51

Resolved in https://github.com/langchain-ai/langchain/pull/15559

Affected Software

2 affected componentsFixes available
pip/langchain<0.1.0
0.1.0
Langchain Langchain<0.1.0

Event History

Feb 24, 2024
CVE Published
via MITRE·05:59 PM
Data Sourced
via MITRE·05:59 PM
DescriptionSeverityWeakness
Feb 26, 2024
Advisory Published
via GitHub·06:30 PM

Frequently Asked Questions

1

What is the severity of CVE-2024-0243?

CVE-2024-0243 has been rated as a critical vulnerability due to its potential impact on web application security.

2

How do I fix CVE-2024-0243?

To fix CVE-2024-0243, upgrade to version 0.1.0 or later of the langchain package.

3

What types of software are affected by CVE-2024-0243?

CVE-2024-0243 affects the langchain package below version 0.1.0.

4

What is the exploit mechanism for CVE-2024-0243?

CVE-2024-0243 can be exploited through crafted URLs that an attacker controls to affect the web crawler behavior.

5

Is CVE-2024-0243 remotely exploitable?

Yes, CVE-2024-0243 is remotely exploitable, allowing attackers to compromise the application from a distance.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203