Advisory

GHSA-r6hf-g5x6-7pv9

Also known as: CVE-2026-31233, PYSEC-2026-347

Summary

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

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2026-05-12 18:30 UTC
Modified
2026-10-27 17:00 UTC

Affected packages and fixes

guardrails-ai

PyPI · All systems

Affected

  • introduced 0, last affected 0.6.7 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences