Server-side request forgery via prefix-only origin validation
Published Feb 24, 2024 · Updated Apr 22, 2025
Server-side request forgery in LangChain before 0.1.0 allows attackers to make RecursiveUrlLoader fetch attacker-chosen URLs. extract_sub_links compares each absolute URL to the allowed base URL with a string-prefix check instead of parsing and matching the scheme and network location. Exploitation requires an application to crawl an attacker-controlled page with prevent_outside enabled; successful requests can reach an unintended origin.
Summary
What happened
Server-side request forgery in LangChain before 0.1.0 allows attackers to make RecursiveUrlLoader fetch attacker-chosen URLs. extract_sub_links compares each absolute URL to the allowed base URL with a string-prefix check instead of parsing and matching the scheme and network location. Exploitation requires an application to crawl an attacker-controlled page with prevent_outside enabled; successful requests can reach an unintended origin.
The record
- CVE
- CVE-2024-0243
- Published
- Feb 24, 2024
- Updated
- Apr 22, 2025
- Vendor
- LangChain
- Product
- LangChain
- Classifications
- CWE-918
- Attack vector
- Unavailable
- Privileges
- Unavailable
Timeline
How it unfolded
- Feb 24, 2024CVE publishedPublication date reported by the CVE source.
- Apr 22, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <0.1.0
- Affected versionversion=unspecified <0.1.0
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Huntr RecursiveUrlLoader proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo