CVE-2026-31233 Guardrails AI contains a code injection vulnerability in its Hub package installation mechanism
Attackers can execute arbitrary code by publishing malicious packages to the Guardrails Hub, affecting users who install them.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-31233?
CVE-2026-31233 is a critical code injection vulnerability in n/a, published on 12 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-94
Which versions are affected by CVE-2026-31233?
3 open source packages ship an affected version, including guardrails-ai.
| Package | Affected | Fixed in |
|---|---|---|
guardrails-ai PyPI | All versions to 0.6.7 | None |
guardrails-ai PyPI | All versions to 0.6.7 | None |
guardrails-ai PyPI | All versions to 0.6.7 | None |
How do I fix CVE-2026-31233?
No fix has been published for CVE-2026-31233 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2026-31233 being exploited?
There is no known exploitation of CVE-2026-31233 in the wild and no public exploit code.
Sources
Also known as GHSA-r6hf-g5x6-7pv9, PYSEC-2026-347.