Browse / Unsafe Model Loading and Supply Chain / CVE-2026-31233
Guardrails AI contains a code injection vulnerability in its Hub package installation mechanism
- Class
- Unsafe Model Loading and Supply Chain (filed by a model that read the advisory)
- Technique
- Code and command execution
- Affected
- guardrails-ai (PyPI)
- CVSS
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS
- 0.6% chance of exploitation in 30 days
How it works, in short
A malicious validator package's manifest names a post-install script path that is executed unvalidated during guardrails hub install, running attacker code. (Our summary, written by a model. The source text is below.)
Details
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
- https://nvd.nist.gov/vuln/detail/CVE-2026-31233
- https://github.com/guardrails-ai/guardrails
- https://github.com/pypa/advisory-database/tree/main/vulns/guardrails-ai/PYSEC-2026-347.yaml
- https://pypi.org/project/guardrails-ai
- https://www.notion.so/CVE-2026-31233-35d1e13931888142a954fb3f50ee0c94
Source: GitHub Advisory Database, used under CC BY 4.0.