Loading...
Skip to main content

CVE-2026-31233 — Vulnerability in guardrails-ai — CVE Details

CRITICAL

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

Published May 12, 2026Updated September 10, 2026Source: osv

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.

Advisory Timeline

  • First published May 12, 2026 (153 days ago).
  • Last revised September 10, 2026 — 120 days after initial publication.

Affected Packages (1)

Affects 1 ecosystem: pypi (1).

PackageEcosystemAffectedFixed In
guardrails-ai
pypi
0.1.0, 0.1.0rc1, 0.1.0rc2, 0.1.0rc3 (+80 more)Range-based data available

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2026-31233?
Guardrails AI contains a code injection vulnerability in its Hub package installation mechanism This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
How do I check if my project is affected by CVE-2026-31233?
CVE-2026-31233 affects guardrails-ai. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-31233 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.8

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-r6hf-g5x6-7pv9
PYSEC-2026-347

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies