Security Alert Summary
The Seraphinite Accelerator plugin for WordPress is affected by a stored cross-site scripting (XSS) vulnerability (CVE-2026-131804). Insufficient input sanitization and output escaping of the HTTP_USER_AGENT parameter in affected versions allows unauthenticated attackers to inject scripts that will execute when a user loads an injected page. Exploitation requires that an administrator previously enabled the “Enable logging” and “HTTP trace” diagnostic options in the plugin Advanced -> Debug settings; both options are disabled by default.
CVE Details
- CVE ID: CVE-2026-131804
- Affected component: Seraphinite Accelerator plugin for WordPress
- Affected versions: All versions up to and including 2.31
- Published: November 20, 2026 at 12:18:24 PM UTC
- Last modified: November 20, 2026 at 12:18:24 PM UTC
- CVSS v3.1 base score: 7.2
- CVSS v3.1 severity: HIGH
- CVSS v3.1 vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N - Authentication / privileges / user interaction: No authentication required; privileges required: NONE; user interaction: NONE
- Primary impact: Confidentiality: LOW; Integrity: LOW; Availability: NONE
- Weakness: CWE-79 (Improper Neutralization of Input During Web Page Generation)
Technical Details
This is a stored cross-site scripting vulnerability caused by insufficient input sanitization and output escaping of the HTTP_USER_AGENT parameter. If an attacker supplies a crafted user agent string and the plugin is configured to log and trace HTTP details, that string can be stored and later rendered in an HTML context without proper escaping. When a user views a page containing the stored payload, the injected script will execute in the context of that user’s browser.
According to the vendor description, successful exploitation requires that an administrator previously enabled the “Enable logging” and “HTTP trace” options in the plugin Advanced -> Debug settings. Because those options are disabled by default, exploitation depends on an administrative configuration change.
How This Could Impact Your Website
Consider a small site with a site owner, internal staff who publish content, and an external contractor who performs testing. If an administrator has enabled the diagnostic logging and HTTP trace options, an unauthenticated attacker could inject a script via the HTTP_USER_AGENT value. That script could execute in the browsers of users who view the affected page, potentially exposing information visible to those users or allowing actions that the users themselves are permitted to perform.
Practical consequences include the potential exposure of internal user email addresses and an increased risk of targeted phishing or social engineering against staff members who view the affected pages. If youre unsure whether your site is affected or how to assess your current user roles and plugins, it may be worth having a professional review.
Recommended Actions
- Update the affected plugin as soon as a patched version is available.
- Audit plugin settings and disable diagnostic logging or HTTP trace options unless explicitly needed.
- Review and reduce unnecessary user roles, especially contributor-level accounts and other roles that do not require administrative rights.
- Enforce strong passwords and two-factor authentication for editors and administrators.
- Remove unused or unmaintained plugins.
- Monitor site activity and logs for unusual behavior or unexpected content changes.
If youd like help reviewing your plugins, user roles, or overall WordPress security posture, our team at Freshy is happy to help.
References
- 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
- https://www.wordfence.com/threat-intel/vulnerabilities/id/92197778-bdaa-441f-bc59-924e6035d5b6?source=cve