Skip to content
CriticalVulnerability

GHSA-xmpw-2vmm-p4p6: Malicious code in guardrails-ai 0.10.1 (supply chain compromise)

Published
Record updated
View JSON
Affected
  • guardrails-ai = 0.10.1
Fixed in
No fixed version was stated when the source was last read.
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.5%

Summary

A malicious version, guardrails-ai 0.10.1, was published to PyPI on May 11, 2026 at approximately 6:00 PM Pacific by an attacker. Anyone who installed guardrails-ai==0.10.1 from PyPI that day is affected, and PyPI quarantined the repository after researchers identified the package within about 2 hours. The maintainers report no requests to Guardrails AI infrastructure from the malicious version and no evidence of user data exfiltration through their systems.

Mitigation

Downgrade to guardrails-ai==0.10.0, which is unaffected, since no patched version above 0.10.1 is available yet. While the PyPI quarantine is active, install from GitHub with pip install git+https://github.com/guardrails-ai/guardrails.git@v0.10.0. If 0.10.1 was installed, treat the host as potentially compromised, rotate any credentials accessible from it (GitHub PATs, cloud provider keys, package registry tokens, API keys), and audit the GitHub account for unauthorized workflows or repositories. Snowglobe and Guardrails Hub API keys will be invalidated at 2:00 PM Pacific on May 13, 2026, so rotate them before then.