Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. ragas
  4. ›
  5. CVE-2025-45691

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

March 5, 2026 (updated April 8, 2026)

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.

References

  • adithyanak.com/ragas-v0214-arbitrary-file-read-vulnerability
  • github.com/advisories/GHSA-v2xr-wvrv-p969
  • github.com/explodinggradients/ragas/blob/e97886ac976465efb60e5949c5d69baf30cc811d/src/ragas/prompt/multi_modal_prompt.py
  • github.com/explodinggradients/ragas/pull/1559
  • github.com/vibrantlabsai/ragas
  • github.com/vibrantlabsai/ragas/commit/b28433709cbedbb531db79dadcfbdbd3aa6adcb0
  • github.com/vibrantlabsai/ragas/pull/1991
  • nvd.nist.gov/vuln/detail/CVE-2025-45691

Code Behaviors & Features

Detect and mitigate CVE-2025-45691 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.2.3 before 0.3.0-rc1

Fixed versions

  • 0.3.0-rc1

Solution

Upgrade to version 0.3.0-rc1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-770: Allocation of Resources Without Limits or Throttling
  • CWE-918: Server-Side Request Forgery (SSRF)

Source file

pypi/ragas/CVE-2025-45691.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:18:55 +0000.