# Debug Log Manager <= 2.5.2 - Unauthenticated Stored Cross-Site Scripting via JavaScript Error Log Details

- **ID:** WPSEC-2026-1291
- **Plugin:** Debug Log Manager – Conveniently Monitor and Inspect Errors (`debug-log-manager`), https://wordpress.org/plugins/debug-log-manager/
- **Affected versions:** all versions before 2.5.3
- **Fixed in:** 2.5.3 (Update to 2.5.3 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 Low (as of 2026-10-21)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/debug-log-manager
- **Fix released:** 2026-10-19
- **Published:** 2026-10-21
- **URL:** https://wpsec.com/vuln/WPSEC-2026-1291/

## Description

The Debug Log Manager plugin for WordPress is vulnerable to Stored Cross-Site Scripting via JavaScript error log details submitted to the 'log_js_errors' handler in all versions up to, and including, 2.5.2. This is due to insufficient input sanitization of encoded markup (JSON unicode escapes and HTML entities), which survives sanitize_text_field() and is later decoded, and to missing output escaping of log entry details and JSON-formatted log dumps in the log viewer and its auto-refresh. This makes it possible for unauthenticated attackers to inject arbitrary web scripts that execute when an administrator views the debug log page, provided JavaScript error logging is enabled.

## References

- https://wpsec.com/vuln/WPSEC-2026-1291/
- https://plugins.svn.wordpress.org/debug-log-manager/tags/2.5.3/
- https://wordpress.org/plugins/debug-log-manager/

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

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.
