CVE-2026-31233
CRITICAL 9.8CVSS 3.1Guardrails AI contains a code injection vulnerability in its Hub package installation mechanism
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.
- Published
- 12 May 2026
- Last modified
- 27 Oct 2026
- Assigned by
- cve@mitre.org
- NVD status
- Deferred
- Weakness
- CWE-94
- Also known as
- GHSA-r6hf-g5x6-7pv9PYSEC-2026-347
- Sources
- NVDJSONOSV GHSA-r6hf-g5x6-7pv9JSONOSV PYSEC-2026-347JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | guardrails-ai | <= 0.6.7 |
References
- https://github.com/guardrails-ai/guardrails · PACKAGE
- https://www.notion.so/CVE-2026-31233-35d1e13931888142a954fb3f50ee0c94 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-31233 · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/guardrails-ai/PYSEC-2026-347.yaml · WEB
- https://pypi.org/project/guardrails-ai · WEB, PACKAGE
- https://github.com/advisories/GHSA-r6hf-g5x6-7pv9 · ADVISORY
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 12 May 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 29 Jun 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 12 May 2026)