# WP Photo Album Plus <= 9.3.07.003 - Authenticated (Contributor+) Stored Cross-Site Scripting via Error Log

- **ID:** WPSEC-2026-4183
- **Plugin:** WP Photo Album Plus (`wp-photo-album-plus`), https://wordpress.org/plugins/wp-photo-album-plus/
- **Affected versions:** all versions before 9.3.08.001
- **Fixed in:** 9.3.08.001 (Update to 9.3.08.001 or later.)
- **Severity:** Medium 6.4 (CVSS:3.1/AV:N/AC:L/PR:L/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-11-28)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/wp-photo-album-plus
- **Fix released:** 2026-11-27
- **Published:** 2026-11-28
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4183/

## Description

The WP Photo Album Plus plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's error/event log in all versions up to, and including, 9.3.07.003, due to insufficient input sanitization and output escaping. wppa_log() escapes only quotes and angle brackets, while the admin log viewer turns the {span ...} and {} pseudo-tags back into HTML. Text logged from an invalid 'type' attribute of the [wppa] shortcode can therefore become an HTML element with an event handler. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts that execute when an administrator views the plugin's log.

## References

- https://wpsec.com/vuln/WPSEC-2026-4183/
- https://plugins.svn.wordpress.org/wp-photo-album-plus/tags/9.3.08.001/
- https://wordpress.org/plugins/wp-photo-album-plus/

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

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.
