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

Source: https://junglewise.ai/threats/cve-2024-6961-guardrails-ai-vulnerable-to-improper-restriction-of-xml-external  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-07  
License: CC BY 4.0 with a link back

CVE-2024-6961 · Severity: low · CVSS 3.1 · Published 2026-07-07

Guardrails AI vulnerable to Improper Restriction of XML External Entity Reference

Technologies: [guardrails-ai (PyPI)](https://junglewise.ai/threats/technologies/pypi-guardrails-ai). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2024-6961 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-6961 being exploited in the wild.

**How severe is CVE-2024-6961?** Low severity, with a CVSS score of 3.1, published 7 July 2026.

**Which products and versions are affected?** guardrails-ai (PyPI) ECOSYSTEM:introduced=0,fixed=0.5.0.

**Is there a fix for CVE-2024-6961?** Yes. guardrails-ai (PyPI): upgrade to 0.5.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2024-6961?** Check whether you run guardrails-ai (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- guardrails-ai (PyPI): upgrade to 0.5.0 or later

  ```sh
  pip install "guardrails-ai>=0.5.0"
  ```


## Affected products

- guardrails-ai (PyPI) ECOSYSTEM:introduced=0,fixed=0.5.0

## Identifiers

- CVE-2024-6961
- GHSA-f8hx-f4xw-c646
- PYSEC-2026-1431

## Related threats

- [PYSEC-2026-1432 - Guardrails has an arbitrary code execution vulnerability](https://junglewise.ai/threats/cve-2024-45858-guardrails-has-an-arbitrary-code-execution-vulnerability)
- [Guardrails AI embedded malicious code in PyPI package](https://junglewise.ai/threats/cve-2026-45758-guardrails-ai-embedded-malicious-code-in-pypi-package)
- [Guardrails AI code injection in Hub package installation](https://junglewise.ai/threats/cve-2026-31233-guardrails-ai-code-injection-in-hub-package-installation)
