# Seraphinite Accelerator <= 2.31 - Unauthenticated Stored Cross-Site Scripting via 'User-Agent' HTTP Header

- **ID:** WPSEC-2026-3469
- **Plugin:** Seraphinite Accelerator (`seraphinite-accelerator`), https://wordpress.org/plugins/seraphinite-accelerator/
- **Affected versions:** from 2.31 before 2.31.1
- **Fixed in:** 2.31.1 (Update to 2.31.1 or later.)
- **Severity:** High 7.2 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Low, affected versions None seen (as of 2026-11-19)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/seraphinite-accelerator
- **Fix released:** 2026-11-18
- **Published:** 2026-11-19
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3469/

## Description

The Seraphinite Accelerator plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'User-Agent' HTTP header in version 2.31, due to insufficient output escaping when the plugin's log is displayed in the log viewer on the settings page. The log records the URL and user agent of front-end requests when request logging is enabled, which it is not by default. This makes it possible for unauthenticated attackers to inject arbitrary web scripts that will execute whenever an administrator opens the log viewer.

## References

- https://wpsec.com/vuln/WPSEC-2026-3469/
- https://plugins.svn.wordpress.org/seraphinite-accelerator/tags/2.31.1/
- https://wordpress.org/plugins/seraphinite-accelerator/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-3469/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
