The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-47928

CVE-2025-47928: Spotipy GitHub Actions RCE Vulnerability

CVE-2025-47928 is a remote code execution flaw in Spotipy's GitHub Actions workflow that allows attackers to exfiltrate secrets and overtake repositories. This post covers the technical details, affected versions, impact, and mitigation.

Published: March 11, 2026

CVE-2025-47928 Overview

CVE-2025-47928 is a critical security vulnerability in Spotipy, a popular Python library for the Spotify Web API. The vulnerability exists in the GitHub Actions workflow configuration (.github/workflows/integration_tests.yml) where the use of pull_request_target trigger combined with checking out the head.sha of a forked pull request creates a dangerous code execution path. This misconfiguration allows attackers to execute arbitrary untrusted code with full access to repository secrets from the base repository.

Critical Impact

Attackers can exfiltrate sensitive credentials including GITHUB_TOKEN, SPOTIPY_CLIENT_ID, and SPOTIPY_CLIENT_SECRET. The GITHUB_TOKEN has content write privileges, enabling complete repository takeover.

Affected Products

  • Spotipy Python Library (commit 4f5759dbfb4506c7b6280572a4db1aabc1ac778d)
  • GitHub repositories using similar pull_request_target workflow patterns

Discovery Timeline

  • 2025-05-15 - CVE-2025-47928 published to NVD
  • 2025-05-16 - Last updated in NVD database

Technical Details for CVE-2025-47928

Vulnerability Analysis

This vulnerability represents a significant CI/CD security misconfiguration affecting the Spotipy repository's GitHub Actions workflow. The pull_request_target event trigger is designed to run workflows from the base repository when a pull request is opened, but when combined with checking out code from the PR's head commit (head.sha), it creates a dangerous privilege escalation scenario. This allows untrusted code from a forked repository to execute with the elevated permissions and secret access of the base repository.

The weakness is classified under CWE-488 (Exposure of Data Element to Wrong Session), as the workflow exposes base repository secrets to an untrusted execution context from a forked pull request.

Root Cause

The root cause stems from a dangerous combination in the GitHub Actions workflow configuration. The pull_request_target trigger executes in the context of the base repository (including access to secrets), but the workflow was configured to checkout code from the forked PR's head commit. This architectural flaw means any malicious code submitted via a pull request from a fork would execute with full access to the repository's secrets, including authentication tokens and API credentials.

Attack Vector

An attacker can exploit this vulnerability by submitting a malicious pull request from a forked repository. The attack flow proceeds as follows:

  1. Attacker forks the Spotipy repository
  2. Attacker modifies the integration test code to include secret exfiltration logic
  3. Attacker submits a pull request to the main repository
  4. The pull_request_target workflow triggers with base repository context
  5. Malicious code executes and exfiltrates GITHUB_TOKEN, SPOTIPY_CLIENT_ID, and SPOTIPY_CLIENT_SECRET
  6. With the GITHUB_TOKEN having content write privileges, the attacker can push malicious commits, create releases, or completely overtake the repository

The vulnerability is exploitable remotely without authentication, requiring only the ability to create a pull request from a forked repository—a standard GitHub feature available to any user.

Detection Methods for CVE-2025-47928

Indicators of Compromise

  • Unexpected pull requests from unknown forks targeting workflow files or test directories
  • Unusual GitHub Actions workflow runs coinciding with external PR submissions
  • Anomalous API calls using SPOTIPY_CLIENT_ID and SPOTIPY_CLIENT_SECRET credentials
  • Repository modifications or commits from unexpected sources using exfiltrated GITHUB_TOKEN
  • Network traffic to external endpoints during workflow execution that could indicate data exfiltration

Detection Strategies

  • Review GitHub Actions audit logs for workflow runs triggered by pull_request_target events from forked repositories
  • Monitor for modifications to workflow files in .github/workflows/ directory
  • Implement alerting on repository permission changes or unexpected releases
  • Scan workflow configurations for dangerous pull_request_target patterns combined with PR head checkout

Monitoring Recommendations

  • Enable GitHub Advanced Security features to detect secret exposure in logs
  • Configure branch protection rules requiring workflow approval for external contributors
  • Implement automated scanning of GitHub Actions workflows for security anti-patterns
  • Monitor Spotify API usage for anomalous patterns indicating credential abuse

How to Mitigate CVE-2025-47928

Immediate Actions Required

  • Update Spotipy to a version containing commit 9dfb7177b8d7bb98a5a6014f8e6436812a47576f which reverts the vulnerable configuration
  • Rotate all potentially compromised secrets: SPOTIPY_CLIENT_ID, SPOTIPY_CLIENT_SECRET, and regenerate repository tokens
  • Audit repository history for any unauthorized changes made using exfiltrated credentials
  • Review GitHub Actions workflow runs for any suspicious activity during the vulnerable period

Patch Information

The vulnerability has been addressed in commit 9dfb7177b8d7bb98a5a6014f8e6436812a47576f, which reverts the dangerous workflow configuration change introduced in commit 4f5759dbfb4506c7b6280572a4db1aabc1ac778d. For detailed patch information, see the GitHub Security Advisory and the remediation commit.

Workarounds

  • Avoid using pull_request_target with code checkout from PR heads in public repositories
  • Use pull_request trigger instead, which runs in the context of the forked repository without access to base secrets
  • If pull_request_target is required, only checkout code from the base branch, not the PR head
  • Implement workflow approval requirements for first-time contributors
  • Use GitHub's environment protection rules to require manual approval before accessing secrets
bash
# Review your workflow files for vulnerable patterns
grep -r "pull_request_target" .github/workflows/
# Check if any workflows checkout PR head after pull_request_target
grep -A 20 "pull_request_target" .github/workflows/*.yml | grep -E "ref:.*head"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechSpotipy

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability0.08%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-488
  • Technical References
  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2025-27154: Spotipy Information Disclosure Flaw
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English