Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. guardrails-ai
  4. ›
  5. CVE-2026-31233

CVE-2026-31233: Guardrails AI contains a code injection vulnerability in its Hub package installation mechanism

May 12, 2026 (updated May 27, 2026)

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.

References

  • github.com/advisories/GHSA-r6hf-g5x6-7pv9
  • github.com/guardrails-ai/guardrails
  • nvd.nist.gov/vuln/detail/CVE-2026-31233
  • www.notion.so/CVE-2026-31233-35d1e13931888142a954fb3f50ee0c94

Code Behaviors & Features

Detect and mitigate CVE-2026-31233 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 0.6.7

Solution

Unfortunately, there is no solution available yet.

Impact 9.8 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

pypi/guardrails-ai/CVE-2026-31233.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:23:22 +0000.