PyPI: ragas

CVE-2025-45691

Safety vulnerability ID: SFTY-20260305-84269

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.

Created at: Apr 8, 2026Updated at: Apr 8, 2026

Overview

RAGAS has an Arbitrary File Read vulnerability

Advisory

RAGAS has an Arbitrary File Read vulnerability

Affected Package

Affecting ragas package, versions
>= 0.2.3, < 0.3.0-rc1

Also affects

---

How to Fix

Upgrade
ragas
to
0.3.0-rc1
or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more