Vulnerability in Seraphinite Accelerator — CVE-2026-131804
HighSeverity
0.5%Estimated exploit probability
50,000+ sitesInstalls
2.31.1Fixed in
What to do now
Update Seraphinite Accelerator to 2.31.1 or later.
Affected versions
- Everything up to and including 2.31
Affected: Seraphinite Accelerator (plugin, seraphinite-accelerator)
What the vulnerability is
The Seraphinite Accelerator plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'HTTP_USER_AGENT' 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.
Sources
- https://plugins.trac.wordpress.org/browser/seraphinite-accelerator/tags/2.31/Cmn/Gen.php#L1704
- https://plugins.trac.wordpress.org/browser/seraphinite-accelerator/tags/2.31/Cmn/Ui.php#L593
- https://plugins.trac.wordpress.org/browser/seraphinite-accelerator/tags/2.31/cache_ex.php#L35
- https://plugins.trac.wordpress.org/browser/seraphinite-accelerator/tags/2.31/cache_ex.php#L75
- https://plugins.trac.wordpress.org/browser/seraphinite-accelerator/tags/2.31/options.php#L154
- https://plugins.trac.wordpress.org/changeset?reponame=&new=3808905%40seraphinite-accelerator%2Ftags%2F2.31.1&old=3805212%40seraphinite-accelerator%2Ftags%2F2.31