Vulnerabilities in pkg:pypi/guardrails-ai

PACKAGE
Advisory Identifier: GHSA-xmpw-2vmm-p4p6
Advisory Summary

CVE-2026-45758 is a CRITICAL (CVSS 9.6) malicious code vulnerability (CWE-506: Embedded Malicious Code) affecting Guardrails ai libraries in the PyPI ecosystem. The issue involves malicious code in guardrails-ai 0.10.1 (supply chain compromise). Remediation is available in the latest vendor maintenance releases.

4 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/guardrails-ai

4 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/guardrails-ai. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-xmpw-2vmm-p4p6 CVE-2026-45758 CRITICAL Malicious code in guardrails-ai 0.10.1 (supply chain compromise)
GHSA-r6hf-g5x6-7pv9 CVE-2026-31233 CRITICAL Guardrails AI contains a code injection vulnerability in its Hub package installation mechanism
GHSA-f8hx-f4xw-c646 CVE-2024-6961 HIGH Guardrails AI vulnerable to Improper Restriction of XML External Entity Reference
GHSA-w392-75q8-vr67 CVE-2024-45858 HIGH Guardrails has an arbitrary code execution vulnerability

CVE-2026-45758 at a Glance

CVE Identifier CVE-2026-45758
GHSA Identifier GHSA-xmpw-2vmm-p4p6
Severity CRITICAL
CVSS v3.1 Base Score 9.6
CWE Classification CWE-506: Embedded Malicious Code
Affected Product Guardrails ai
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 9.6

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2026-45758

To remediate this vulnerability, upgrade all affected Guardrails ai dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

guardrails-ai fixed: Latest secure release
pip install guardrails-ai>=Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show guardrails-ai

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-45758, inspect your installed packages using pip:

pip show guardrails-ai

Analyze the terminal output to locate any version of Guardrails ai in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The pip show guardrails-ai command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-506: Embedded Malicious Code, where the product contains code that appears to be malicious in nature. In Guardrails ai, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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](https://github.com/guardrails-ai/guardrails/blob/main/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/guardrails.git@v0.10.0` The `v0.10.0` tag in this repository is clean. Track quarantine status here: [#1473](https://github.com/guardrails-ai/guardrails/issues/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](https://github.com/guardrails-ai/guardrails/blob/main/SECURITY_ADVISORY.md)

CVE-2026-45758 Affected Guardrails ai Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
guardrails-ai
PyPI
0.10.1
All 1 versions
0.10.1
None specified

References

Frequently Asked Questions

What is CVE-2026-45758?
CVE-2026-45758 is a security vulnerability in Guardrails ai involving Malicious code in guardrails-ai 0.10.1 (supply chain compromise) under CWE-506: Embedded Malicious Code.
Which Guardrails ai versions are affected?
Affected versions include releases prior to current release patches across affected packages: guardrails-ai.
What version fixes CVE-2026-45758?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is guardrails-ai affected?
Yes, guardrails-ai is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2026-45758?
CVE-2026-45758 has a CVSS v3.1 base score of 9.6 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2026-45758?
CVE-2026-45758 is classified under CWE-506: Embedded Malicious Code (The product contains code that appears to be malicious in nature.).
How can I check PyPI dependencies for CVE-2026-45758?
Run the dependency tree command: 'pip show guardrails-ai'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-xmpw-2vmm-p4p6",
  "modified" : "2026-06-09T13:13:18Z",
  "published" : "2026-05-19T15:40:44Z",
  "aliases" : [ "CVE-2026-45758" ],
  "summary" : "Malicious code in guardrails-ai 0.10.1 (supply chain compromise)",
  "details" : "### Impact\n\nOn May 11, 2026 at approximately 6:00 PM Pacific, an attacker published a malicious version of `guardrails-ai` (0.10.1) to PyPI.\n\n**Affected:** any user who installed `guardrails-ai==0.10.1` from PyPI on May 11, 2026.\n\nSecurity 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.\n\nFor the full timeline, technical details, and remediation steps we have taken, see [SECURITY_ADVISORY.md](https://github.com/guardrails-ai/guardrails/blob/main/SECURITY_ADVISORY.md).\n\n### Patches\n\nNo patched version above 0.10.1 is available yet. **Downgrade to `0.10.0`**, which is unaffected.\n\n### Workarounds\n\n**1. Pin to a safe version:**\n\n`guardrails-ai==0.10.0`\n\n**2. While the PyPI quarantine is active, install from GitHub:**\n\n`pip install git+https://github.com/guardrails-ai/guardrails.git@v0.10.0`\n\nThe `v0.10.0` tag in this repository is clean. Track quarantine status here: [#1473](https://github.com/guardrails-ai/guardrails/issues/1473).\n\n**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.\n\n**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.\n\n### References\n\n- Full advisory, timeline, and remediation details: [SECURITY_ADVISORY.md](https://github.com/guardrails-ai/guardrails/blob/main/SECURITY_ADVISORY.md)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "guardrails-ai"
    },
    "versions" : [ "0.10.1" ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/guardrails-ai/guardrails/security/advisories/GHSA-xmpw-2vmm-p4p6"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-45758"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/guardrails-ai/guardrails/issues/1473"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/guardrails-ai/guardrails"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/guardrails-ai/guardrails/blob/main/SECURITY_ADVISORY.md"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/guardrails-ai/PYSEC-2026-206.yaml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-506" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-19T15:40:44Z",
    "nvd_published_at" : "2026-06-05T20:17:32Z"
  }
}