Security Alert Summary
The WP Photo Album Plus plugin for WordPress contains a stored cross-site scripting (XSS) vulnerability in the data.comment parameter in versions up to and including 9.3.07.003. Authenticated users with subscriber-level access or higher can store crafted input that leads to script execution when an injected page is viewed. Successful exploitation additionally requires an action by an administrator – the attacker cannot trigger the vulnerability on their own.
CVE Details
- CVE ID: CVE-2026-137124
- Affected component: WP Photo Album Plus plugin
- Affected versions: all versions up to and including 9.3.07.003
- Published: December 3, 2026 at 7:17:22 AM (UTC)
- Last modified: December 3, 2026 at 7:17:23 AM (UTC)
- CVSS v3.1: Base Score 5.4 – MEDIUM
- Vector String: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- Authentication / privileges / user interaction: Requires authenticated user with low privileges (subscriber-level or above); user interaction required
- Primary impact: Confidentiality – Low; Integrity – Low; Availability – None
- Weakness: CWE-79 (Improper Neutralization of Input During Web Page Generation – Cross-site Scripting)
Technical Details
The vulnerability is a stored cross-site scripting issue originating from insufficient input sanitization and output escaping of the data.comment parameter. An attacker with subscriber-level access or higher can submit specially crafted comment data that is stored by the plugin. The stored payload can bypass certain sanitization steps because the double-encoded entity ' is preserved by both wp_kses_post() and esc_js(), and a later rewrite pass by wppa_compress_html() collapses it to a browser-decoded literal single quote that can break out of a JavaScript string context.
The injected script executes whenever a user accesses the affected page that displays the stored comment. The description notes that an administrator action is also required for exploitation to succeed – the attacker cannot trigger the payload without that additional step by an administrator.
How This Could Impact Your Website
Consider a site with multiple WordPress users: a site owner, internal staff who help manage content, and external contributors or contractors who can add comments or content. A contributor or contractor with subscriber-level access could store a crafted comment that later executes script code when an administrator or other user views the page. Practical consequences include exposure of internal user information such as email addresses displayed on affected pages and an increased risk of targeted phishing or social engineering against staff who view the injected content. The impact aligns with the CVSS metrics indicating low confidentiality and integrity impact rather than full site compromise.
If youre unsure whether your site is affected or how to assess your current user roles and plugins, it may be worth having a professional review.
Recommended Actions
- Update the affected plugin as soon as a patched version is available.
- Review and reduce unnecessary user roles and capabilities, especially for contributors and lower-privilege accounts.
- Enforce strong passwords and enable two-factor authentication for editor and administrator accounts.
- Remove unused or unmaintained plugins and themes from the site.
- Monitor site activity and logs for unusual behavior, such as unexpected comment submissions or admin actions.
If youd like help reviewing your plugins, user roles, or overall WordPress security posture, our team at Freshy is happy to help.
References
- https://plugins.trac.wordpress.org/browser/wp-photo-album-plus/tags/9.3.07.003/wppa-ajax.php#L531
- https://plugins.trac.wordpress.org/browser/wp-photo-album-plus/tags/9.3.07.003/wppa-boxes-html.php#L294
- https://plugins.trac.wordpress.org/browser/wp-photo-album-plus/tags/9.3.07.003/wppa-filter.php#L768
- https://plugins.trac.wordpress.org/browser/wp-photo-album-plus/tags/9.3.07.003/wppa-functions.php#L2627
- https://plugins.trac.wordpress.org/browser/wp-photo-album-plus/tags/9.3.07.003/wppa-input.php#L360
- https://plugins.trac.wordpress.org/browser/wp-photo-album-plus/tags/9.3.07.003/wppa-utils.php#L5259
- https://plugins.trac.wordpress.org/browser/wp-photo-album-plus/tags/9.3.07.003/wppa-wpdb-insert.php#L221
- https://plugins.trac.wordpress.org/changeset?reponame=&old=3815127%40wp-photo-album-plus&new=3815127%40wp-photo-album-plus
- https://www.wordfence.com/threat-intel/vulnerabilities/id/87a4ec1e-00b5-4a64-a134-cf5f20a1a289?source=cve