Guardrails AI contains a code injection vulnerability in its Hub package installation mechanism
CVE-2026-31233 · GHSA-r6hf-g5x6-7pv9 · published 2026-05-12 · updated 2026-10-27
- Severity
- Critical
- CVSS score
- 9.8
- Chance of exploitation (EPSS)
- 0.64%
- Fixed in
- No fix yet
- Exploitation No known exploitation
- Automatable Yes
- Technical impact Total
- CISA SSVC
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.
No fixed release is listed yet for guardrails-ai. Follow the source advisory for updates, and until one ships:
General guidance from ShieldPi, not a vendor fix
- Command or code injection. Remove or disable the affected server or tool, or run it in a sandbox with no secrets in its environment.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| guardrails-ai | PyPI | <= 0.6.7 | No fix yet |
- CriticalUnauthenticated Remote Code Execution in Langflow via Public Flow Build EndpointlangflowExploited
- CriticalRay is vulnerable to Critical RCE via Safari & Firefox Browsers through DNS Rebinding AttackrayExploited
- CriticalLangflow Unauth RCElangflow, langflow-baseExploited
- HighLiteLLM: Authenticated command execution via MCP stdio test endpointslitellmExploited
- CriticalMLflow vulnerable to remote code execution on unauthenticated servers via third-party scorer deserialization importing caller-placed artifacmlflow
- CriticalAgno: Arbitrary code execution via `eval()` on `field_type` in `FunctionCall`agno
- CriticalMalicious code in guardrails-ai (PyPI)guardrails-ai
- CriticalMalicious code in guardrails-ai 0.10.1 (supply chain compromise)guardrails-ai
- HighGuardrails has an arbitrary code execution vulnerabilityguardrails-ai
- HighGuardrails AI vulnerable to Improper Restriction of XML External Entity Referenceguardrails-ai
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.