CVE-2026-31233
Guardrails AI thru 0.6.7 contains a code injection vulnerability …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/guardrails-ai/guardrails
- www.notion.so/CVE-2026-31233-35d1e13931888142a954fb3f50ee0c94
- nvd.nist.gov/vuln/detail/CVE-2026-31233
- github.com/advisories/GHSA-r6hf-g5x6-7pv9
- github.com/pypa/advisory-database/tree/main/vulns/guardrails-ai/PYSEC-2026-347.yaml
- pypi.org/project/guardrails-ai
- nvd.nist.gov/vuln/detail/CVE-2026-31233
- cve.org/CVERecord?id=CVE-2026-31233
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.