Advisory

GHSA-f8hx-f4xw-c646

Also known as: CVE-2024-6961, PYSEC-2026-1431

Summary

Guardrails AI vulnerable to Improper Restriction of XML External Entity Reference

Details

RAIL documents are an XML-based format invented by Guardrails AI to enforce formatting checks on LLM outputs. Guardrails users that consume RAIL documents from external sources are vulnerable to XXE, which may cause leakage of internal file data via the SYSTEM entity.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-07-21 12:30 UTC
Modified
2026-07-07 17:56 UTC

Affected packages and fixes

guardrails-ai

PyPI · All systems

Affected

  • introduced 0, fixed 0.5.0 (ecosystem)

Fixed versions

0.5.0

Fix

  • Fixed version 0.5.0
    pip install --upgrade guardrails-ai==0.5.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences