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-2026-1304

CVE-2026-1304: WordPress Membership Plugin XSS Flaw

CVE-2026-1304 is a stored cross-site scripting vulnerability in the Membership Plugin for WordPress, affecting versions up to 3.2.18. Attackers with admin access can inject malicious scripts. Learn about technical details and fixes.

Published: February 20, 2026

CVE-2026-1304 Overview

The Membership Plugin – Restrict Content for WordPress contains a Stored Cross-Site Scripting (XSS) vulnerability affecting multiple invoice settings fields in all versions up to and including 3.2.18. The vulnerability arises from insufficient input sanitization and output escaping in the plugin's settings handling code.

This flaw enables authenticated attackers with administrator-level access to inject arbitrary web scripts into pages that execute whenever any user accesses an injected page. While requiring high privileges to exploit, the stored nature of this XSS means malicious scripts persist and can affect multiple users over time.

Critical Impact

Authenticated administrators can inject persistent malicious scripts via invoice settings fields, potentially compromising other admin accounts or facilitating privilege persistence in multi-admin WordPress environments.

Affected Products

  • Membership Plugin – Restrict Content for WordPress versions up to and including 3.2.18
  • WordPress sites using vulnerable versions of the Restrict Content plugin
  • Invoice functionality within the Restrict Content plugin (settings.php and invoice.php)

Discovery Timeline

  • 2026-02-18 - CVE-2026-1304 published to NVD
  • 2026-02-18 - Last updated in NVD database

Technical Details for CVE-2026-1304

Vulnerability Analysis

This Stored Cross-Site Scripting vulnerability exists within the administrative settings interface of the Restrict Content plugin, specifically in the invoice configuration functionality. The vulnerable code spans multiple settings fields located in core/includes/admin/settings/settings.php (lines 896, 905, 914, 923, 932, 941, 950, and 971) and the invoice template file at core/templates/invoice.php (lines 271 and 281).

The vulnerability requires administrator-level authentication to exploit, which limits the immediate attack surface. However, the stored nature of the XSS payload means that once injected, the malicious script persists in the database and executes whenever any user views pages that render the affected invoice settings or generated invoices.

In WordPress environments with multiple administrators or in scenarios where administrator accounts may be compromised, this vulnerability could be leveraged for privilege persistence, session hijacking of other admin accounts, or as a stepping stone for further attacks against site visitors viewing invoices.

Root Cause

The root cause of CVE-2026-1304 is insufficient input sanitization on data entry and inadequate output escaping when rendering invoice settings fields. The plugin fails to properly sanitize user-supplied input through WordPress security functions like sanitize_text_field() or wp_kses() before storing data in the database. Additionally, when outputting these stored values, the plugin does not apply proper escaping functions such as esc_html() or esc_attr(), allowing stored JavaScript payloads to execute in the browser context.

This represents a classic CWE-79 (Improper Neutralization of Input During Web Page Generation) vulnerability pattern where both input validation and output encoding controls are missing or inadequate.

Attack Vector

The attack requires network access and administrator-level authentication to the WordPress dashboard. An attacker with these privileges would navigate to the Restrict Content plugin's invoice settings page and inject malicious JavaScript code into one or more of the vulnerable settings fields.

The injected script is stored in the WordPress database and subsequently rendered without proper escaping when:

  1. Other administrators view the settings page
  2. Users access pages displaying invoice information
  3. Invoice templates are rendered for payment confirmations

The malicious script then executes in the victim's browser context, potentially stealing session cookies, performing actions on behalf of the victim, or redirecting users to malicious sites.

Detection Methods for CVE-2026-1304

Indicators of Compromise

  • Unexpected JavaScript code or HTML tags present in Restrict Content plugin invoice settings fields in the wp_options database table
  • Suspicious entries containing <script>, onerror=, onload=, or similar XSS payload patterns in invoice-related option values
  • Browser console errors or unexpected network requests when viewing invoice settings or generated invoices

Detection Strategies

  • Review WordPress database options related to Restrict Content invoice settings for any HTML or JavaScript injection attempts
  • Monitor WordPress admin activity logs for unusual modifications to Restrict Content plugin settings
  • Implement Web Application Firewall (WAF) rules to detect XSS payload patterns in POST requests to WordPress admin pages
  • Use WordPress security plugins to scan for stored XSS patterns in the database

Monitoring Recommendations

  • Enable comprehensive logging for all WordPress admin actions, particularly plugin settings modifications
  • Configure real-time alerting for changes to Restrict Content plugin configuration
  • Implement Content Security Policy (CSP) headers to mitigate XSS impact and generate violation reports
  • Regularly audit administrator accounts and their recent activity for signs of compromise

How to Mitigate CVE-2026-1304

Immediate Actions Required

  • Update the Membership Plugin – Restrict Content for WordPress to a patched version newer than 3.2.18
  • Audit existing invoice settings for any suspicious content or injected scripts
  • Review administrator account activity and verify no unauthorized configuration changes have been made
  • Implement Content Security Policy headers to reduce XSS impact while patches are being applied

Patch Information

The vulnerability affects all versions of the Restrict Content plugin up to and including 3.2.18. Site administrators should update to the latest patched version available in the WordPress plugin repository. The fix addresses the missing input sanitization and output escaping in the invoice settings functionality.

Detailed changeset information is available in the WordPress Restrict Content Changeset Overview. Additional vulnerability details can be found in the Wordfence Vulnerability Report.

Workarounds

  • Limit administrator account access to only trusted personnel until the plugin can be updated
  • Implement a Web Application Firewall with XSS filtering rules for WordPress admin endpoints
  • Temporarily disable the invoice settings functionality if not critical to business operations
  • Add Content Security Policy headers to restrict inline script execution:
bash
# Apache .htaccess CSP header configuration
Header set Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline';"

# Nginx configuration
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline';";

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechWordpress

  • SeverityMEDIUM

  • CVSS Score4.4

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • WordPress Restrict Content Settings - Line 896

  • WordPress Restrict Content Settings - Line 905

  • WordPress Restrict Content Settings - Line 914

  • WordPress Restrict Content Settings - Line 923

  • WordPress Restrict Content Settings - Line 932

  • WordPress Restrict Content Settings - Line 941

  • WordPress Restrict Content Settings - Line 950

  • WordPress Restrict Content Settings - Line 971

  • WordPress Restrict Content Invoice Template - Line 271

  • WordPress Restrict Content Invoice Template - Line 281

  • WordPress Restrict Content Changeset Overview

  • Wordfence Vulnerability Report
  • Related CVEs
  • CVE-2026-4146: Loco Translate XSS Vulnerability

  • CVE-2026-1834: Ibtana WordPress Plugin XSS Vulnerability

  • CVE-2026-4267: Query Monitor WordPress Plugin XSS Flaw

  • CVE-2026-2480: WP Shortcodes Ultimate Plugin XSS 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