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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | guardrails-ai | < 0.5.0 | 0.5.0 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-6961
- https://github.com/guardrails-ai/guardrails/pull/922
- https://github.com/guardrails-ai/guardrails/commit/f3d806afee31e2e3f97af682d16c3c1bc0d3c380
- https://github.com/guardrails-ai/guardrails
- https://research.jfrog.com/vulnerabilities/guardrails-rail-xxe-jfsa-2024-001035519
- https://pypi.org/project/guardrails-ai
- https://github.com/advisories/GHSA-f8hx-f4xw-c646
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N- Weakness (CWE)
CWE-611- Platform
- Python (PyPI)
- Package
guardrails-ai- Disclosed
- 21.07.2024
- Updated
- 11.10.2026 13:18
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2026-1431 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-f8hx-f4xw-c646 - CC BY 4.0
Vulnerability history: guardrails-ai
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 4
- First → latest
- 07.2024 05.2026
- Without a fix
- 2
- Exploited in attacks
- 0
Severity breakdown
- Critical 2
- High 2
Disclosures per year
- 2024: 2
- 2025: 0
- 2026: 2
-
Guardrails AI vulnerable to Improper Restriction of XML External Entity Reference this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.