CVE-2026-100161: Photo Reviews for WooCommerce <= 1.2.30 - Unauthenticated Stored DOM-Based Cross-Site Scripting via 'wcpr_image_upload_id' Parameter
The Photo Reviews for WooCommerce plugin for WordPress is vulnerable to Stored DOM-Based Cross-Site Scripting via the 'wcprimageuploadid' parameter in all versions up to, and including, 1.2.30 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. The publicly-emitted wcprimageupload nonce printed on every product review form is the only gate, and no capability, authentication, or attachment ownership check is performed, allowing the payload to be stored in comment meta — which is not subject to wpkses — by any unauthenticated visitor; the XSS fires once the review is visible on the frontend.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
Any unauthenticated visitor can exploit it. The required wcpr_image_upload nonce is publicly emitted on every product review form, and exploitation does not require a WordPress account, a capability, or ownership of an attachment.
When does the injected script execute?
The payload is stored in review comment metadata and executes when the affected review is visible on the frontend. Because the affected metadata is not subject to wp_kses, injected content can persist until it is removed.
Are default product review forms exposed?
Product review forms expose the publicly emitted nonce that acts as the only stated gate. Sites using the affected plugin through version 1.2.30 should treat publicly accessible product review submission as exposed.
How can I check whether a site has already been targeted?
Review stored product-review comment metadata for unexpected or suspicious values associated with wcpr_image_upload_id. Also inspect frontend product reviews for unexpected script execution or injected markup when reviews are displayed.