# WP Photo Album Plus <= 9.3.07.003 - Authenticated (Subscriber+) Stored Cross-Site Scripting via Photo Comments

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

## Description

The WP Photo Album Plus plugin for WordPress is vulnerable to Stored Cross-Site Scripting via photo comments in all versions up to, and including, 9.3.07.003, due to insufficient output escaping of comment text. The comment was only filtered with wp_kses_post and then placed inside a single-quoted JavaScript string in the slideshow data. The slideshow later inserts that string into the page as HTML, so JavaScript escape sequences such as \x3c pass the filter and turn into markup. This makes it possible for authenticated attackers, with subscriber-level access and above, who are allowed to comment on photos, to inject arbitrary web scripts that execute when a user views the photo's slideshow comments.

## References

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

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.
