# WP Photo Album Plus <= 9.3.07.003 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'class' Shortcode Attribute

- **ID:** WPSEC-2026-4182
- **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-4182/

## Description

The WP Photo Album Plus plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'class' attribute of the [wppa] shortcode in all versions up to, and including, 9.3.07.003 due to insufficient input sanitization and output escaping. The attribute value was stored unsanitized and echoed raw inside the class attribute of the container wrapper div. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

## References

- https://wpsec.com/vuln/WPSEC-2026-4182/
- 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-4182/

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.
