# CVE-2026-142197: llama-index-tools-requests through 0.8.0 Credential Leak via Backslash URL Parser Differential

Source: https://aplosec.si/cve/CVE-2026-142197/

[AploSec](https://aplosec.si/) / [Disclosures](https://aplosec.si/disclosures/) / CVE-2026-142197

Medium 6.0 · Reported · No fix listed · CWE-436 · PyPI

# llama-index-tools-requests through 0.8.0 Credential Leak via Backslash URL Parser Differential

CVE-2026-142197 · published 2026-12-02

In plain words: this type of bug lets two parts of a system read the same input differently, so a check can be slipped past (parsing mismatch). No fixed release is listed yet.

## Summary

CVE-2026-142197 affects llama-index-tools-requests (PyPI) <= 0.8.0: Credential Leak via Backslash URL Parser Differential (CWE-436). No fixed release is listed. CVSS 4.0 base score 6.0 (Medium), assigned by VulnCheck. Published 2026-12-02 by VulnCheck. Credit: Zachariah Mithani (AploSec).

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.

## Evidence

Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.

## Remediation

No fixed release is listed in the advisory. Check the references for upstream status.

## References

- [VulnCheck advisoryhttps://www.vulncheck.com/advisories/llama-index-tools-requests-through-0.8.0-credential-leak-via-backslash-url-parser-differential](https://www.vulncheck.com/advisories/llama-index-tools-requests-through-0.8.0-credential-leak-via-backslash-url-parser-differential)

- [Vulnerable codehttps://github.com/run-llama/llama_index/blob/890d87d30b0498687a3005b3307e3398d83fbca9/llama-index-integrations/tools/llama-index-tools-requests/llama_index/tools/requests/base.py#L189-L197](https://github.com/run-llama/llama_index/blob/890d87d30b0498687a3005b3307e3398d83fbca9/llama-index-integrations/tools/llama-index-tools-requests/llama_index/tools/requests/base.py#L189-L197)

- [Vulnerable codehttps://github.com/run-llama/llama_index/blob/890d87d30b0498687a3005b3307e3398d83fbca9/llama-index-integrations/tools/llama-index-tools-requests/llama_index/tools/requests/base.py#L51-L62](https://github.com/run-llama/llama_index/blob/890d87d30b0498687a3005b3307e3398d83fbca9/llama-index-integrations/tools/llama-index-tools-requests/llama_index/tools/requests/base.py#L51-L62)

- [CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-142197](https://www.cve.org/CVERecord?id=CVE-2026-142197)

**Severity:** Medium 6.0 CVSS 4.0, scored by VulnCheck in the [CVE record](https://www.cve.org/CVERecord?id=CVE-2026-142197)

**Package:** llama-index-tools-requests

**Ecosystem:** PyPI

**Affected:** <= 0.8.0

**Fixed:** None

**Weakness:** CWE-436

**CNA:** VulnCheck

**Credit:** Zachariah Mithani (AploSec) finder
