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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-4579

CVE-2025-4579: WP Content Security Plugin XSS Vulnerability

CVE-2025-4579 is a stored XSS flaw in WP Content Security Plugin for WordPress that allows unauthenticated attackers to inject malicious scripts. This article covers the technical details, affected versions, and mitigation strategies.

Updated: May 11, 2026

CVE-2025-4579 Overview

CVE-2025-4579 is a Stored Cross-Site Scripting (XSS) vulnerability in the WP Content Security Policy plugin for WordPress. The flaw affects all versions up to and including 2.3. It exists because the plugin fails to properly sanitize and escape the blocked-uri and effective-directive parameters received from Content Security Policy violation reports. Unauthenticated attackers can inject arbitrary JavaScript that executes whenever an administrator or user views the affected page. The issue is tracked under CWE-79.

Critical Impact

Unauthenticated attackers can inject persistent JavaScript into the WordPress admin context, enabling session theft, account takeover, and full site compromise when a logged-in administrator views the injected content.

Affected Products

  • WordPress Plugin: WP Content Security Policy (wp-content-security-policy)
  • All versions up to and including 2.3
  • Affected source file: includes/WP_CSP.php

Discovery Timeline

  • 2025-05-15 - CVE-2025-4579 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2025-4579

Vulnerability Analysis

The WP Content Security Policy plugin processes Content Security Policy (CSP) violation reports submitted by browsers. These reports contain fields such as blocked-uri and effective-directive describing why a CSP rule was triggered. The plugin stores these values and later renders them in the WordPress admin interface without applying input sanitization on write or output escaping on read.

Because CSP violation report endpoints accept unauthenticated POST requests by design, an attacker can craft malicious report payloads containing JavaScript inside the affected parameters. The payload is persisted to the database and executes in the browser of any user viewing the violation log, including site administrators.

The vulnerability is classified as Stored XSS under CWE-79. Successful exploitation in the admin context can lead to creation of rogue administrator accounts, plugin installation, and full site takeover.

Root Cause

The root cause is missing input sanitization and missing output escaping in WP_CSP.php around lines 597, 612, and 659. The plugin trusts attacker-controlled fields from CSP report submissions and writes them to storage and HTML output without using WordPress functions such as sanitize_text_field() on input or esc_html() / esc_attr() on output.

Attack Vector

The attack vector is remote and network-based, requires no authentication, and no user interaction is needed to inject the payload. The attacker sends a forged CSP violation report to the reporting endpoint exposed by the plugin. The injected script executes when a privileged user later loads the page that renders the stored report fields. See the Wordfence Vulnerability Report and the relevant code locations in the WP_CSP.php source for technical details.

No verified public proof-of-concept code is currently linked in the NVD entry, so exploitation details are described in prose rather than reproduced here.

Detection Methods for CVE-2025-4579

Indicators of Compromise

  • Unexpected CSP violation report entries containing HTML tags, <script> markup, javascript: URIs, or event handlers such as onerror= in the blocked-uri or effective-directive fields.
  • New or unfamiliar WordPress administrator accounts created shortly after CSP report submissions.
  • Outbound requests from administrator browsers to attacker-controlled domains following access to the plugin's report view.
  • Unexpected modifications to themes, plugins, or wp_options entries following admin sessions.

Detection Strategies

  • Inspect stored CSP violation records in the WordPress database for non-URL characters and script-like content in the blocked-uri and effective-directive columns.
  • Monitor HTTP POST requests to the plugin's CSP reporting endpoint for payloads containing angle brackets, quotes, or JavaScript keywords.
  • Review web server access logs for repeated unauthenticated POSTs to the report-uri endpoint from a single source.

Monitoring Recommendations

  • Enable WordPress audit logging for user creation, role changes, and plugin or theme file modifications.
  • Alert on administrator sessions that immediately follow access to the plugin's violation report admin page.
  • Forward WordPress and web server logs to a centralized analytics platform for correlation and retention.

How to Mitigate CVE-2025-4579

Immediate Actions Required

  • Identify all WordPress sites running the WP Content Security Policy plugin at version 2.3 or earlier.
  • Update the plugin to a patched release once the vendor publishes a fix, or deactivate and remove it until a patch is available.
  • Purge existing CSP violation report entries from the database to remove any previously injected payloads.
  • Audit administrator accounts, scheduled tasks, and recently modified plugin or theme files for signs of compromise.

Patch Information

At the time of NVD publication, the vulnerability affects all versions up to and including 2.3. Site operators should consult the Wordfence Vulnerability Report and the plugin's repository for current patch status and upgrade guidance.

Workarounds

  • Deactivate the WP Content Security Policy plugin until a fixed version is installed.
  • Block unauthenticated access to the plugin's CSP report endpoint at the web server or WAF layer.
  • Restrict access to the WordPress admin area using IP allowlisting or HTTP authentication to reduce exposure of stored payloads.
  • Apply a WAF rule that drops POST requests to the CSP reporting endpoint when the body contains <, >, or script tokens in the blocked-uri or effective-directive fields.
bash
# Example nginx rule to block script-like payloads to the CSP report endpoint
location ~* /wp-json/.*csp.*report {
    if ($request_method = POST) {
        if ($request_body ~* "(<script|onerror=|javascript:)") {
            return 403;
        }
    }
}

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechWordpress

  • SeverityHIGH

  • CVSS Score7.2

  • EPSS Probability0.88%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • WordPress Plugin Code Snippet

  • WordPress Plugin Code Snippet

  • WordPress Plugin Code Snippet

  • Wordfence Vulnerability Report
  • Related CVEs
  • CVE-2026-6504: Royal Elementor Addons XSS Vulnerability

  • CVE-2026-6174: CC Child Pages WordPress Plugin XSS Flaw

  • CVE-2026-6252: Meta Field Block WordPress Plugin XSS Flaw

  • CVE-2026-3694: Bold Page Builder WordPress XSS Vulnerability
Default Legacy - Prefooter | 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