CVE-2025-45691 RAGAS has an Arbitrary File Read vulnerability
Attackers can read arbitrary files via improper URL validation in the ImageTextPromptValue class of the RAGAS library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-45691?
CVE-2025-45691 is a high-severity path traversal vulnerability in n/a, published on 5 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An Arbitrary File Read vulnerability exists in the ImageTextPromptValue class in Exploding Gradients RAGAS v0.2.3 to v0.2.14. The vulnerability stems from improper validation and sanitization of URLs supplied in the retrieved_contexts parameter when handling multimodal inputs.
Which versions are affected by CVE-2025-45691?
3 open source packages ship an affected version, including ragas. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
ragas PyPI | From 0.2.3 | 0.3.0-rc1 |
ragas PyPI | From 0.2.3 | 0.3.0-rc1 |
ragas PyPI | From 0.2.3 | 0.3.0-rc1 |
Products include Vibrantlabsai Ragas.
How do I fix CVE-2025-45691?
Upgrade ragas to 0.3.0-rc1 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2025-45691 being exploited?
There is no known exploitation of CVE-2025-45691 in the wild and no public exploit code.
Sources
Also known as GHSA-v2xr-wvrv-p969, PYSEC-2026-3047.