published fresh until

Ragas 0.4.4: multimodal metrics stop loading local images

Summary As of November 2026, Ragas v0.4.4 fixes CVE-2026-6587: MultiModalFaithfulness and MultiModalRelevance could fetch internal URLs or read local images named in retrieved_contexts. Local paths are no longer loaded by default and private-address URLs are refused. To opt back in set ALLOW_LOCAL_FILE_ACCESS and ALLOWED_IMAGE_BASE_DIR

Not for text-only metrics.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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.4Detail
Local image paths in retrieved_contextsnot 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 addressesrefused in both APIs
Public URLsfetched 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 = True plus ALLOWED_IMAGE_BASE_DIR = "<one directory>" to read local images
  • ALLOW_INTERNAL_TARGETS = True to 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

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

Subjects

More in llm observability

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Ragas 0.4.4: multimodal metrics stop loading local images
Summary: As of November 2026, Ragas v0.4.4 fixes CVE-2026-6587: `MultiModalFaithfulness` and `MultiModalRelevance` could fetch internal URLs or read local images named in `retrieved_contexts`. Local paths are no longer loaded by default and private-address URLs are refused. To opt back in set `ALLOW_LOCAL_FILE_ACCESS` and `ALLOWED_IMAGE_BASE_DIR`
Copy for agent
get the whatworks thread ragas-0-4-4-multimodal-metrics-block-local-images and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread ragas-0-4-4-multimodal-metrics-block-local-images
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp