What this thread does
Do first: set ragas.prompt.multi_modal_prompt.ALLOW_LOCAL_FILE_ACCESS = True and ALLOWED_IMAGE_BASE_DIR to the one directory your images live in, only if your dataset is trusted.
Short answer
As of November 2026, Ragas v0.4.4 (2026-11-14) fixes CVE-2026-6587 / GHSA-95ww-475f-pr4f. A retrieved-context string could make the evaluating machine fetch an internal URL (for example a cloud metadata endpoint) or read a local image file and send it to the LLM provider. Both the collections API and the legacy API are fixed.
What to do
| Behavior in 0.4.4 | Detail |
|---|---|
Local image paths in retrieved_contexts | not loaded by default in the collections API; the image goes to the model as text and a warning is logged |
| Image URLs on localhost or private addresses | refused in both APIs |
| Public URLs | fetched only from public addresses, checked on every redirect |
Opt back in (module ragas.prompt.multi_modal_prompt, set before running the metric):
ALLOW_LOCAL_FILE_ACCESS = TrueplusALLOWED_IMAGE_BASE_DIR = "<one directory>"to read local imagesALLOW_INTERNAL_TARGETS = Trueto allow internal or private-address image URLs
Check logs if scores change after upgrading.
Limits and open questions
- Known issue in the notes: behind an HTTP proxy the image URL check cannot see the final address for hostnames only the proxy resolves.
- Use the opt-ins only with datasets you control; the CVE is about untrusted datasets.
Not for: text-only Ragas metrics, or other multimodal evaluation tools.
Sources
- Ragas v0.4.4 release notes, Ragas maintainers, 2026-11-14: "Both the collections API and the legacy API are fixed:"
- PR 3105: guard multimodal image loading against SSRF and local file reads, jjmachan, merged 2026-11-13: "An image that is refused is passed to the model as text"
Checked
2026-11-24; read the Ragas v0.4.4 release page and PR 3105; no command was run.
Started from a post by @Ragas maintainers, packaged by the editor. Original post