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

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.64%, higher than 51% of CVEs (2026-12-01)
- Published: 2026-05-12T00:00:00.000Z
- Modified: 2026-10-27T17:00:05.141Z
- Also known as: GHSA-r6hf-g5x6-7pv9, PYSEC-2026-347
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- guardrails-ai (PyPI): up to 0.6.7

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## 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> (package, web)
- <https://github.com/advisories/GHSA-r6hf-g5x6-7pv9> (advisory)

## Sources

- CVE List: [CVE-2026-31233](https://www.cve.org/CVERecord?id=CVE-2026-31233), CVE Terms of Use, modified 2026-05-14
- GitHub Advisory Database: [GHSA-r6hf-g5x6-7pv9](https://github.com/advisories/GHSA-r6hf-g5x6-7pv9), CC-BY-4.0, modified 2026-10-27
- NVD: [CVE-2026-31233](https://nvd.nist.gov/vuln/detail/CVE-2026-31233), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-347](https://osv.dev/vulnerability/PYSEC-2026-347), CC-BY-4.0, modified 2026-07-01

---

Page: https://cve.day/CVE-2026-31233 · Whole record: https://cve.day/CVE-2026-31233.json · Rebuilt by cve.day 2026-11-25T22:59:21.387Z
