GHSA-r6hf-g5x6-7pv9: Guardrails AI contains a code injection vulnerability in its Hub package installation mechanism
- Identifiers
- CVE-2026-31233GHSA-r6hf-g5x6-7pv9
- Published
- Record updated
- Affected
- guardrails-ai <= 0.6.7
- Fixed in
- No fixed version was stated when the source was last read.
Summary
Guardrails AI through 0.6.7 contains a code injection vulnerability (CWE-94) in its Hub package installation mechanism. During `guardrails hub install`, the system fetches a manifest from the Guardrails Hub and executes the script named in its post_install field, but the script path is built from untrusted manifest data and run without validation or sanitization, allowing remote code execution. An attacker who can publish malicious packages to the Hub can run arbitrary code on any system where a victim installs that package.
Mitigation
The source does not state a fix yet. Check the original advisory for updates.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- guardrails-aiPyPILLM dependency since 2023-03-13, 1 tracked dependent
Related items
- HighCVE-2026-128877: IBM Langflow OSS 1.0.0 through 1.13.0 agentic MCP endpoint uses an internal client to send requests to the server's own…Similar attack, NVD/CVE Database
- MediumCVE-2026-120038: IBM Langflow OSS credential exposure via attacker-controlled OpenAI base_urlSimilar attack, NVD/CVE Database
- MediumCVE-2026-136957: Sonatype Nexus Repository 3 HuggingFace proxy download token verification flawSimilar attack, NVD/CVE Database
- HighCVE-2026-142134 - Uncontrolled search path element in the workflow linting tools in AWS HealthOmics MCP ServerSimilar attack, AWS Security Bulletins
- HighCVE-2026-142134: AWS HealthOmics MCP Server uncontrolled search path in workflow linting toolsSimilar attack, NVD/CVE Database