Anomify AI WordPress Plugin Stored Cross-Site Scripting Vulnerability

Vulnerability

A stored cross-site scripting vulnerability has been identified in the Anomify AI – Anomaly Detection and Alerting plugin for WordPress, affecting versions through 0.3.6. The issue arises from inadequate input sanitization and absent output escaping. Specifically, the plugin uses 'sanitize_text_field()' on the 'anomify_api_key' parameter before saving it with 'update_option()'. However, this sanitization fails to properly encode double-quote characters, allowing authenticated attackers with administrator privileges to inject malicious scripts. These scripts are executed when a user accesses the plugin's settings page.

Impact

Exploitation of this vulnerability allows for stored cross-site scripting, where injected scripts are executed in the context of the user visiting the settings page.

Reproduction

To reproduce this vulnerability, an authenticated administrator can navigate to the Anomify plugin settings page. From there, the 'anomify_api_key' parameter can be updated with a value that includes a script injection. Once saved, the injected script will execute whenever the settings page is visited.

Added: May 20, 2026, 3:15 AM
Updated: May 20, 2026, 3:15 AM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
5.4
exploitability
5.5
remediation
0.0
relevance
8.9
threat
4.8
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.