CVE-2025-45691 RAGAS has an Arbitrary File Read vulnerability

High 7.5 Published Updated

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.

Weakness: CWE-918, CWE-22

Which versions are affected by CVE-2025-45691?

3 open source packages ship an affected version, including ragas. It affects 1 product.

PackageAffectedFixed in
ragas PyPIFrom 0.2.30.3.0-rc1
ragas PyPIFrom 0.2.30.3.0-rc1
ragas PyPIFrom 0.2.30.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.

Is CVE-2025-45691 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free