Lookup for vulnerable packages by Package URL.
| Purl | pkg:pypi/langchain-exa@0.1.0 |
| Type | pypi |
| Namespace | |
| Name | langchain-exa |
| Version | 0.1.0 |
| Qualifiers |
|
| Subpath | |
| Is_vulnerable | true |
| Next_non_vulnerable_version | 1.0.0a1 |
| Latest_non_vulnerable_version | 1.0.0a1 |
| Affected_by_vulnerabilities |
| 0 |
| url |
VCID-f71e-h861-6qh6 |
| vulnerability_id |
VCID-f71e-h861-6qh6 |
| summary |
LangChain versions up to and including 0.3.1 contain a regular expression denial-of-service (ReDoS) vulnerability in the MRKLOutputParser.parse() method (libs/langchain/langchain/agents/mrkl/output_parser.py). The parser applies a backtracking-prone regular expression when extracting tool actions from model output. An attacker who can supply or influence the parsed text (for example via prompt injection in downstream applications that pass LLM output directly into MRKLOutputParser.parse()) can trigger excessive CPU consumption by providing a crafted payload, causing significant parsing delays and a denial-of-service condition. |
| references |
|
| fixed_packages |
|
| aliases |
CVE-2024-58340, PYSEC-2026-75
|
| risk_score |
null |
| exploitability |
null |
| weighted_severity |
null |
| resource_url |
http://public2.vulnerablecode.io/vulnerabilities/VCID-f71e-h861-6qh6 |
|
|
| Fixing_vulnerabilities |
| 0 |
| url |
VCID-u29a-rxyq-aubh |
| vulnerability_id |
VCID-u29a-rxyq-aubh |
| summary |
With the following crawler configuration:
```python
from bs4 import BeautifulSoup as Soup
url = "https://example.com"
loader = RecursiveUrlLoader(
url=url, max_depth=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/my_file.html" and the crawler would proceed to download that file as well even though `prevent_outside=True`.
https://github.com/langchain-ai/langchain/blob/bf0b3cc0b5ade1fb95a5b1b6fa260e99064c2e22/libs/community/langchain_community/document_loaders/recursive_url_loader.py#L51-L51
Resolved in https://github.com/langchain-ai/langchain/pull/15559 |
| references |
|
| fixed_packages |
|
| aliases |
CVE-2024-0243, GHSA-h9j7-5xvc-qhg5, PYSEC-2024-235
|
| risk_score |
null |
| exploitability |
null |
| weighted_severity |
null |
| resource_url |
http://public2.vulnerablecode.io/vulnerabilities/VCID-u29a-rxyq-aubh |
|
|
| Risk_score | null |
| Resource_url | http://public2.vulnerablecode.io/packages/pkg:pypi/langchain-exa@0.1.0 |