CVE-2026-110251

Photo Reviews for WooCommerce <= 1.2.31 - Unauthenticated File Deletion via 'wcpr_image_upload_id' Parameter

Published Oct 31, 2026 CVSS 3.1 · 5.4 Medium EPSS < 1% KEV · Not listed
Description
The Photo Reviews for WooCommerce plugin for WordPress is vulnerable to unauthorized Media Library File Deletion in all versions up to, and including, 1.2.31. This is due to the `delete_reviews_image()` function's `delete_comment` hook trusting attachment IDs supplied via the `wcpr_image_upload_id` POST parameter that were stored in comment meta without any ownership or capability check — `viwcpr_filter_review_image_ids()` verifies only that each submitted ID refers to an attachment post type, not that the submitter uploaded or owns it. This makes it possible for unauthenticated attackers to permanently delete any WordPress media library attachment — including its files on disk as recorded by `wp_delete_attachment()` — by embedding attacker-chosen attachment IDs into a review comment, then waiting for a moderator to remove the review or for WordPress core's `wp_scheduled_delete` cron to purge it after `EMPTY_TRASH_DAYS`. The nonce required to submit the parameter (`wcpr_image_upload`) is a shared public value printed on every product page for guest commenters and does not function as an authentication barrier, making this trivially exploitable without any account.

Analysis

AI-generated

Technical impact

The Photo Reviews for WooCommerce plugin contains a flaw that allows an attacker to permanently delete any media library attachment by submitting a crafted attachment ID through the wcpr_image_upload_id POST parameter. The function handling this request performs only a light type check and does not verify ownership or permissions, enabling deletion of files on disk via the standard WordPress deletion routine. This vulnerability is a classic example of CWE‑22: Path Traversal — the plugin trusts user input that determines which file to delete, without enforcing proper access controls.

Affected Systems

The flaw exists in the Revopic – Photo Reviews for WooCommerce WordPress plugin versions up to and including 1.2.31. Any site that has installed these versions of the plugin is susceptible.

Risk and Exploitability

The CVSS v3 score of 5.4 indicates moderate severity, but the vendor nonce used to protect the parameter is merely a shared public value and does not authenticate the caller, making the attack trivial for unauthenticated users. An attacker can embed malicious attachment IDs in a review comment and merely wait for the comment to be moderated or for WordPress’s scheduled deletion process to trigger. Because the vulnerability can delete files and never requires elevated privileges, the risk to confidentiality, integrity, and availability of media is significant. EPSS is not available and the issue is not listed in the CISA KEV catalog, but the low barrier to exploitation warrants immediate attention.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Photo Reviews for WooCommerce plugin to a version newer than 1.2.31, which removes the insecure attachment deletion logic.
  • If the update cannot be applied immediately, temporarily disable the plugin or restrict its use, and block unauthenticated comments to prevent malicious submission of attachment IDs.
  • Modify the plugin code or add a custom filter to enforce a capability check before calling wp_delete_attachment, ensuring only authorized users can delete media attachments.

Generated by OpenCVE AI on October 31, 2026 at 08:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Villatheme
Villatheme photo Reviews For Woocommerce
Wordpress-extensions
Wordpress-extensions photo Reviews For Woocommerce
Vendors & Products Villatheme
Villatheme photo Reviews For Woocommerce
Wordpress-extensions
Wordpress-extensions photo Reviews For Woocommerce
Type Values Removed Values Added
Description The Photo Reviews for WooCommerce plugin for WordPress is vulnerable to unauthorized Media Library File Deletion in all versions up to, and including, 1.2.31. This is due to the `delete_reviews_image()` function's `delete_comment` hook trusting attachment IDs supplied via the `wcpr_image_upload_id` POST parameter that were stored in comment meta without any ownership or capability check — `viwcpr_filter_review_image_ids()` verifies only that each submitted ID refers to an attachment post type, not that the submitter uploaded or owns it. This makes it possible for unauthenticated attackers to permanently delete any WordPress media library attachment — including its files on disk as recorded by `wp_delete_attachment()` — by embedding attacker-chosen attachment IDs into a review comment, then waiting for a moderator to remove the review or for WordPress core's `wp_scheduled_delete` cron to purge it after `EMPTY_TRASH_DAYS`. The nonce required to submit the parameter (`wcpr_image_upload`) is a shared public value printed on every product page for guest commenters and does not function as an authentication barrier, making this trivially exploitable without any account.
Title Photo Reviews for WooCommerce <= 1.2.31 - Unauthenticated File Deletion via 'wcpr_image_upload_id' Parameter
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
Wordfence
Published
Updated
Nov 6, 2026, 6:36 PM
Reserved
Oct 13, 2026, 6:09 PM
Status
Deferred
Published
Oct 31, 2026, 7:16 AM
Modified
Nov 6, 2026, 7:17 PM