Advisory

PYSEC-2026-1431

Also known as: CVE-2024-6961, GHSA-f8hx-f4xw-c646

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

Medium Basis: CVSS v3 score 5.9, vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Dates

Published
2026-07-07 14:34 UTC
Modified
2026-07-07 17:47 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: PyPA Advisory Database · CC BY 4.0

Sources & licences