CVE-2026-31233: Guardrails AI contains a code injection vulnerability in its Hub package installation mechanism
Guardrails AI thru 0.6.7 contains a code injection vulnerability (CWE-94) in its Hub package installation mechanism. When installing validator packages via guardrails hub install, the system retrieves a manifest from the Guardrails Hub and dynamically executes a script specified in the postinstall field.
Published May 12, 2026 · Updated May 27, 2026
Affected packages
guardrails-ai
- Ecosystem
- PyPI
- Affected
- <= 0.6.7
- Fixed in
- No patched version yet
- Check
pip show guardrails-ai
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Guardrails AI thru 0.6.7 contains a code injection vulnerability (CWE-94) in its Hub package installation mechanism. When installing validator packages via guardrails hub install, the system retrieves a manifest from the Guardrails Hub and dynamically executes a script specified in the post_install field. The script path is constructed from untrusted manifest data and executed without proper validation or sanitization, allowing remote code execution. An attacker who can publish malicious packages to the Hub can inject arbitrary code that will be executed on any system where a victim installs the malicious package.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Guardrails AI vulnerabilities
All Guardrails AI entriesCVE-2026-45758
Malicious code in guardrails-ai 0.10.1 (supply chain compromise)
critical9.6No fixMay 19, 2026CVE-2024-45858
Guardrails has an arbitrary code execution vulnerability
high8.8Sep 18, 2024CVE-2024-6961
Guardrails AI vulnerable to Improper Restriction of XML External Entity Reference
high5.9Jul 21, 2024
