CVE-2026-31233
JSON

9.8critical

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

Severity
9.8critical CVSS:3.1 by CISA-ADP
Exploit likelihood
0.64% (higher than 51% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-r6hf-g5x6-7pv9PYSEC-2026-347

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
guardrails-ai (PyPI)up to 0.6.7GitHub Advisory Database, PyPA Advisory Database

All scores

CISA-ADP9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
PyPA Advisory Database9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-94

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-31233 changed 2026-05-14CVE Terms of Use
GitHub Advisory DatabaseGHSA-r6hf-g5x6-7pv9 changed 2026-10-27CC-BY-4.0
NVDCVE-2026-31233 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2026-347 changed 2026-07-01CC-BY-4.0