PyPI: sigstore

CVE-2026-24408

Safety vulnerability ID: SFTY-20260126-12751

Safety legacy ID: pyup.io-85154

Affected versions of the sigstore package are vulnerable to Cross-Site Request Forgery (CSRF) due to missing validation of the OAuth “state” parameter returned in the authentication response. The sigstore _OAuthSession flow generates a unique state value and includes it in the OIDC/OAuth authentication request, but does not appear to cross-check that the state in the server response matches the original value.

Created at: May 22, 2026Updated at: May 22, 2026

Overview

sigstore CSRF possibility in OIDC authentication during signing

Advisory

Affected versions of the sigstore package are vulnerable to Cross-Site Request Forgery (CSRF) due to missing validation of the OAuth “state” parameter returned in the authentication response. The sigstore _OAuthSession flow generates a unique state value and includes it in the OIDC/OAuth authentication request, but does not appear to cross-check that the state in the server response matches the original value.

Affected Package

Affecting sigstore package, versions
<4.2.0

Also affects

---

How to Fix

Upgrade
sigstore
to
4.2.0
or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more