CVE-2024-6961guardrailsai guardrails
Medium 5.9 No auth needed
Follow: this CVE · guardrailsai · guardrailsai guardrails We alert you by email or Slack (account required).
- Priority
- 50
- CVSS 3.1
- 5.9
- EPSS
- 0.6% probability of exploitation in 30 days · percentile 41
- Auth required
- No
- Published
- Jul 21, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-611
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for guardrails.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | guardrails-ai |
< 0.5.0 |
0.5.0 |
pip install "guardrails-ai>=0.5.0" |
| PyPI | guardrails-ai |
< 0.5.0 |
0.5.0 |
pip install "guardrails-ai>=0.5.0" |
Per OSV / GitHub Advisories (GHSA-f8hx-f4xw-c646, PYSEC-2026-1431). Check the version in your lockfile before upgrading.
Affected products
- guardrailsai · guardrails
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.