CVE-2026-45758: Malicious code in guardrails-ai 0.10.1 (supply chain compromise)
guardrails-ai 0.10.1 on PyPI is malicious. An attacker published it on May 11, 2026 at about 6:00 PM Pacific, using deploy tokens stolen from CI artifacts. Anyone who installed that exact version should treat the host as compromised. The safe version is 0.10.0. No patched release above 0.10.1 is listed in the advisory.
Published May 19, 2026 · Updated Jun 9, 2026 · Analysis Nov 17, 2026
What an attacker can do
This is a supply chain compromise, not a coding bug. According to the project's security advisory, an employee's GitHub personal access token was compromised. The attacker used it to run a GitHub Action across 30 repositories in the organization. The resulting artifacts held repository secrets, including the PyPI deploy tokens. The attacker then published guardrails-ai==0.10.1.
Security researchers spotted the package within about two hours and PyPI quarantined it. The advisory does not describe what the payload did on a user's machine, and it lists no files, domains or hashes. It says Guardrails AI telemetry saw no requests from the malicious version and found no sign of data exfiltration through its systems. That does not tell you what ran on your own host.
The risk is code running with the privileges of whoever installed or imported the package. That means developer laptops, CI runners and servers. The exposed material includes GitHub tokens, cloud keys, registry tokens and API keys on that machine.
Who is affected
Only version 0.10.1 is affected, and only if it was installed from PyPI on May 11, 2026. Version 0.10.0 is unaffected. Check what is installed in each environment, including CI images and containers:
pip show guardrails-aiAlso search lock files and build logs for guardrails-ai==0.10.1. A host that installed it and later downgraded is still potentially compromised.
guardrails-ai
- Ecosystem
- PyPI
- Affected
- = 0.10.1
- Fixed in
- No patched version yet
- Check
pip show guardrails-ai
How to fix it
No patched version above 0.10.1 is available in the advisory. Downgrade to 0.10.0:
pip install guardrails-ai==0.10.0While the PyPI quarantine was active, the advisory gave this alternative, which installs the clean v0.10.0 tag:
pip install git+https://github.com/guardrails-ai/[email protected]The advisory pages disagree about whether the quarantine was lifted. Check issue 1473 or the PyPI listing before you rely on a newer release.
If you installed 0.10.1, uninstall it and rotate every credential the host could reach: GitHub PATs, cloud provider keys, registry tokens and API keys. Audit your GitHub account for unauthorized workflows or repositories, and consider reimaging the host. Snowglobe and Guardrails Hub API keys were set to be invalidated on May 13, 2026 at 2:00 PM Pacific, so rotate them.
How to tell if you were hit
Search lock files, pip freeze output, CI logs and image layers for guardrails-ai==0.10.1. The advisory publishes no file, domain or hash indicators, so you cannot match on payload artifacts. Look instead at what the host could reach. Review GitHub for workflows or repositories you did not create, check cloud and registry audit logs for unfamiliar use of keys after May 11, 2026, and look for new access tokens.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Impact
On May 11, 2026 at approximately 6:00 PM Pacific, an attacker published a malicious version of guardrails-ai (0.10.1) to PyPI.
Affected: any user who installed guardrails-ai==0.10.1 from PyPI on May 11, 2026.
Security researchers identified the malicious package within approximately 2 hours of publication, and PyPI quarantined the repository. Based on our telemetry, we have observed no requests to Guardrails AI infrastructure originating from the malicious 0.10.1 version, and a review of system and access logs has produced no evidence of user data exfiltration through our systems.
For the full timeline, technical details, and remediation steps we have taken, see SECURITY_ADVISORY.md.
Patches
No patched version above 0.10.1 is available yet. Downgrade to `0.10.0`, which is unaffected.
Workarounds
1. Pin to a safe version:
guardrails-ai==0.10.0
2. While the PyPI quarantine is active, install from GitHub:
pip install git+https://github.com/guardrails-ai/[email protected]
The v0.10.0 tag in this repository is clean. Track quarantine status here: #1473.
3. If you installed 0.10.1, treat the host as potentially compromised. Rotate any credentials accessible from that machine (GitHub PATs, cloud provider keys, package registry tokens, API keys) and audit your GitHub account for unauthorized workflows or repositories.
4. Snowglobe and Guardrails Hub users : all Snowglobe and Guardrails Hub API keys will be invalidated at 2:00 PM Pacific on May 13, 2026. Rotate yours before then to avoid service interruption.
References
- Full advisory, timeline, and remediation details: SECURITY_ADVISORY.md
Questions
- Is guardrails-ai 0.10.0 safe?
Yes. The advisory names 0.10.0 as unaffected and says the
v0.10.0git tag is clean. Only 0.10.1 is malicious.- What if I installed 0.10.1 and removed it?
Treat the host as potentially compromised. The advisory says to rotate all credentials reachable from it and audit GitHub for unauthorized changes. It also suggests reimaging.
- Is there evidence the payload stole data?
The advisory shows no exfiltration through Guardrails AI systems. It does not describe the payload, so it neither confirms nor rules out theft from user machines.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More Guardrails AI vulnerabilities
All Guardrails AI entriesCVE-2026-31233
Guardrails AI contains a code injection vulnerability in its Hub package installation mechanism
critical9.8No fixMay 12, 2026CVE-2024-45858
Guardrails has an arbitrary code execution vulnerability
high8.8Sep 18, 2024CVE-2024-6961
Guardrails AI vulnerable to Improper Restriction of XML External Entity Reference
high5.9Jul 21, 2024
