Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. guardrails-ai
  4. ›
  5. CVE-2024-6961

CVE-2024-6961: Guardrails AI vulnerable to Improper Restriction of XML External Entity Reference

July 21, 2024 (updated November 18, 2024)

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

  • github.com/advisories/GHSA-f8hx-f4xw-c646
  • github.com/guardrails-ai/guardrails
  • github.com/guardrails-ai/guardrails/commit/f3d806afee31e2e3f97af682d16c3c1bc0d3c380
  • github.com/guardrails-ai/guardrails/pull/922
  • nvd.nist.gov/vuln/detail/CVE-2024-6961
  • research.jfrog.com/vulnerabilities/guardrails-rail-xxe-jfsa-2024-001035519

Code Behaviors & Features

Detect and mitigate CVE-2024-6961 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.5.0

Fixed versions

  • 0.5.0

Solution

Upgrade to version 0.5.0 or above.

Impact 5.9 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-611: Improper Restriction of XML External Entity Reference

Source file

pypi/guardrails-ai/CVE-2024-6961.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 13 May 2025 00:16:19 +0000.