CVE-2026-131804: Seraphinite Accelerator <= 2.31 - Unauthenticated Stored Cross-Site Scripting via 'User-Agent' HTTP Header
The Seraphinite Accelerator plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'HTTPUSERAGENT' parameter in all versions up to, and including, 2.31 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. Exploitation requires that an administrator has previously enabled the 'Enable logging' and 'HTTP trace' diagnostic options in the plugin's Advanced → Debug settings, both of which are disabled by default.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
Keep both diagnostic options disabled in Advanced → Debug settings; exploitation requires an administrator to have enabled them.
Seraphinite Accelerator Enable logging and HTTP trace = disabled
Event History
Frequently Asked Questions
Are default plugin installations affected?
No. Exploitation requires both the “Enable logging” and “HTTP trace” diagnostic options under Advanced → Debug to have been enabled. Both options are disabled by default.
What does an attacker need to exploit this issue?
An attacker does not need authentication and can supply a malicious User-Agent HTTP header. The injected script executes when a user accesses an injected page.
What should administrators do if they cannot update immediately?
Disable the “Enable logging” and “HTTP trace” options in the plugin’s Advanced → Debug settings. These diagnostic options are required for exploitation.