CVE-2026-142197: llama-index-tools-requests through 0.8.0 Credential Leak via Backslash URL Parser Differential
llama-index-tools-requests through 0.8.0 contains a URL parser differential vulnerability in RequestsToolSpec that allows attackers to redirect per-domain secret headers by embedding a backslash in URLs. Attackers can use prompt injection or user-supplied URLs so urlparse() matches a trusted hostname while requests connects to an attacker host, leaking Authorization or API key headers.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Deployments using llama-index-tools-requests through 0.8.0 are exposed when RequestsToolSpec sends per-domain Authorization or API key headers and an attacker can influence a requested URL, including through prompt injection or user-supplied URL input.
What does an attacker need to exploit it?
The attacker needs to cause the tool to process a crafted URL containing a backslash. The URL must be parsed as matching a trusted hostname by urlparse() while the requests client connects to an attacker-controlled host.
What information can be leaked?
Authorization headers or API key headers configured to be sent for a trusted domain can be redirected to the attacker-controlled host. The reported impact is confidentiality only; integrity and availability impacts are not indicated.
How can I determine whether my deployment may be affected?
Check whether llama-index-tools-requests is installed at version 0.8.0 or earlier and whether RequestsToolSpec is configured with secret headers scoped to domains. Also determine whether untrusted users or model prompts can influence URLs passed to the tool.