ADVISORIES

PyPA Advisory Database

PYSEC-2026-1431

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.

Affected packages

EcosystemPackageAffected versions
PyPIguardrails-ai
All versions before 0.5.0 (fixed in 0.5.0)

References