Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-103422 Overview
The AnyComment plugin for WordPress contains a Stored Cross-Site Scripting (XSS) vulnerability in versions up to and including 0.3.6. The flaw resides in the public /wp-json/anycomment/v1/subscribe REST endpoint, which fails to sanitize the email parameter. The stored value is later rendered without output escaping in AnyCommentSubscriptionsTable::column_default() when the subscription's user_ID does not resolve to an existing WP_User. Unauthenticated attackers can inject arbitrary scripts that execute when an administrator views the AnyComment → Subscriptions admin page. The weakness is classified as [CWE-79].
Critical Impact
Unauthenticated attackers can plant persistent JavaScript payloads that execute in administrator browser sessions, enabling session theft, account takeover, or arbitrary admin actions.
Affected Products
- WordPress AnyComment plugin versions up to and including 0.3.6
- WordPress sites exposing the /wp-json/anycomment/v1/subscribe REST endpoint
- Administrator sessions accessing the AnyComment Subscriptions admin page
Discovery Timeline
- 2026-10-14 - CVE-2026-103422 published to NVD
- 2026-10-14 - Last updated in NVD database
Technical Details for CVE-2026-103422
Vulnerability Analysis
The vulnerability chains two weaknesses: missing input sanitization at ingestion and missing output escaping at render. The public REST route /wp-json/anycomment/v1/subscribe accepts a subscription request from any unauthenticated client. The handler in AnyCommentRestSubscriptions.php stores the submitted email value directly in the subscriptions table without sanitizing HTML or script content.
When an administrator loads the AnyComment Subscriptions screen, the WP_List_Table implementation iterates each row through AnyCommentSubscriptionsTable::column_default(). If the subscription's user_ID cannot be resolved to a valid WP_User, the code path returns the raw email field inside an HTML <td> element without passing it through esc_html() or equivalent escaping. The injected payload executes in the administrator's authenticated browser context.
Root Cause
The root cause is dual: the REST endpoint trusts attacker-controlled input, and the admin table renderer treats stored data as safe HTML. WordPress coding standards require escaping on output, which is not applied here. The conditional fallback that triggers when user_ID is unresolved bypasses any user-object derived formatting that might otherwise neutralize the payload.
Attack Vector
An unauthenticated attacker sends a POST request to the subscription REST endpoint with a crafted email parameter containing HTML and script tags. The payload is persisted. Exploitation completes when any administrator opens the AnyComment Subscriptions page, at which point the script runs with full admin privileges in the browser, enabling actions such as creating admin users, modifying plugin options, or exfiltrating session cookies.
Technical details are available in the Wordfence Vulnerability Report, with vulnerable code paths visible in the AnyComment REST API source and the Admin Subscriptions Table source.
Detection Methods for CVE-2026-103422
Indicators of Compromise
- POST requests to /wp-json/anycomment/v1/subscribe containing <script>, onerror=, onload=, javascript:, or encoded script fragments in the email field
- Rows in the AnyComment subscriptions database table where the email column contains HTML tags or non-RFC-5322 characters
- Unexpected administrator account creation, option changes, or outbound requests originating shortly after an admin loaded the Subscriptions page
Detection Strategies
- Query the subscriptions table for email values that fail standard email regex validation or contain <, >, ", or javascript: substrings
- Inspect web server access logs for anonymous POST traffic to the AnyComment subscribe REST route
- Review WordPress audit logs for admin-triggered configuration changes correlated with Subscriptions page views
Monitoring Recommendations
- Alert on anomalous volume of unauthenticated REST calls to /wp-json/anycomment/v1/*
- Monitor admin browser sessions for unexpected XHR or fetch requests to wp-admin/admin-ajax.php and REST user-management endpoints
- Track changes to the wp_users and wp_usermeta tables, particularly new accounts with administrator role assignments
How to Mitigate CVE-2026-103422
Immediate Actions Required
- Deactivate the AnyComment plugin until a patched release is installed if administrators regularly access the Subscriptions page
- Audit the subscriptions table and purge any rows containing HTML or script content in the email column
- Rotate administrator credentials and invalidate active sessions if evidence of script execution is found
Patch Information
No fixed version is identified in the published NVD entry at the time of writing. Monitor the WordPress plugin repository and the Wordfence advisory for a release above 0.3.6 addressing the input sanitization and output escaping defects.
Workarounds
- Block or restrict access to /wp-json/anycomment/v1/subscribe at the web application firewall or reverse proxy layer
- Disable the AnyComment Subscriptions admin page via capability filtering until a patch is available
- Apply a WAF rule that rejects POST bodies to the subscribe endpoint where the email field contains <, >, or script
# Example nginx rule to block script-bearing payloads on the subscribe endpoint
location = /wp-json/anycomment/v1/subscribe {
if ($request_method = POST) {
if ($request_body ~* "(<|%3C)\s*script|javascript:|onerror=|onload=") {
return 403;
}
}
proxy_pass http://wordpress_backend;
}
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

