# Sucuri Security – Auditing, Malware Scanner and Security Hardening <= 2.8.1 - Unauthenticated Stored Cross-Site Scripting via Firewall Audit Logs

- **ID:** WPSEC-2026-4648
- **Plugin:** Sucuri Security – Auditing, Malware Scanner and Security Hardening (`sucuri-scanner`), https://wordpress.org/plugins/sucuri-scanner/
- **Affected versions:** all versions before 2.8.2
- **Fixed in:** 2.8.2 (Update to 2.8.2 or later.)
- **Severity:** Medium 5.4 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Medium, affected versions Medium (as of 2026-12-04)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/sucuri-scanner
- **Fix released:** 2026-12-03
- **Published:** 2026-12-04
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4648/

## Description

The Sucuri Security – Auditing, Malware Scanner and Security Hardening plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the Firewall Audit Logs page in all versions up to, and including, 2.8.1. The cause is the plugin's template engine, which replaces pseudo-variables one parameter at a time and scans values that were already inserted again. When a firewall log entry is rendered, a request header value such as the Referer can carry a '%%%SUCURI.AccessLog.HttpUserAgent%%%' marker. That marker is then replaced with the raw, unescaped User-Agent value of the same request. This makes it possible for unauthenticated attackers to inject arbitrary web scripts by sending crafted requests through the Sucuri Firewall. The scripts execute when an administrator views the plugin's Firewall Audit Logs.

## References

- https://wpsec.com/vuln/WPSEC-2026-4648/
- https://plugins.svn.wordpress.org/sucuri-scanner/tags/2.8.2/
- https://wordpress.org/plugins/sucuri-scanner/

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

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.
