A AegiFlow
CRITICALCVSS 9.8EPSS 0.6%

CVE-2026-31233

Guardrails AI contains a code injection vulnerability in its Hub package installation mechanism

Published
2026-05-12
Modified
2026-10-27
EPSS percentile
50%
Aliases
GHSA-r6hf-g5x6-7pv9
Sources
github-advisory

Summary

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.

Affected packages

EcosystemPackageAffected versionsFixed versions
PyPIguardrails-ai——

Remediation: No patched version is listed by GitHub.

References

Includes data from the GitHub Advisory Database, licensed under CC-BY 4.0.

CVE® is a registered trademark of The MITRE Corporation. CVE content reproduced under the CVE Terms of Use; copyright designation © MITRE.

EPSS scores provided by the FIRST.org Exploit Prediction Scoring System.