CVE-2024-6961: Guardrails AI vulnerable to Improper Restriction of XML External Entity Reference
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.
Published Jul 21, 2024 · Updated Nov 18, 2024
Affected packages
guardrails-ai
- Ecosystem
- PyPI
- Affected
- < 0.5.0
- Fixed in
- 0.5.0
- Check
pip show guardrails-ai
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-6961
- https://research.jfrog.com/vulnerabilities/guardrails-rail-xxe-jfsa-2024-001035519
- https://github.com/guardrails-ai/guardrails/pull/922
- https://github.com/guardrails-ai/guardrails/commit/f3d806afee31e2e3f97af682d16c3c1bc0d3c380
- https://github.com/advisories/GHSA-f8hx-f4xw-c646
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Guardrails AI vulnerabilities
All Guardrails AI entriesCVE-2026-45758
Malicious code in guardrails-ai 0.10.1 (supply chain compromise)
critical9.6No fixMay 19, 2026CVE-2026-31233
Guardrails AI contains a code injection vulnerability in its Hub package installation mechanism
critical9.8No fixMay 12, 2026CVE-2024-45858
Guardrails has an arbitrary code execution vulnerability
high8.8Sep 18, 2024
