---
id: CVE-2026-110251
title: >-
  Photo Reviews for WooCommerce <= 1.2.31 - Unauthenticated File Deletion via
  'wcpr_image_upload_id' Parameter
summary: >-
  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 t…
severity: medium
cvss: 5.4
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L'
cvssSource: cna
cwe:
  - CWE-22
vendor: villatheme
product: Revopic – Photo Reviews for WooCommerce
affected:
  - revopic_photo_reviews_for_woocommerce <= 1.2.31
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-06T18:35:53.812558Z'
published: '2026-10-31'
updated: '2026-11-06'
sourceUpdated: '2026-11-06T18:36:22.896Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-110251'
references:
  - url: >-
      https://www.wordfence.com/threat-intel/vulnerabilities/id/b9a4d8f9-7b25-4c31-8457-2cb45bd17150?source=cve
  - url: >-
      https://plugins.trac.wordpress.org/browser/woo-photo-reviews/trunk/admin/admin.php#L2403
  - url: >-
      https://plugins.trac.wordpress.org/browser/woo-photo-reviews/trunk/frontend/frontend.php#L1267
  - url: >-
      https://plugins.trac.wordpress.org/browser/woo-photo-reviews/trunk/frontend/frontend.php#L1232
  - url: >-
      https://plugins.trac.wordpress.org/browser/woo-photo-reviews/trunk/includes/functions.php#L84
  - url: 'https://wordpress.org/plugins/woo-photo-reviews/'
tags:
  - cve.org
epss: 0.00316
epssPercentile: 0.24699
ingestedAt: '2026-11-05T16:24:31.535Z'
---

## Overview

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.

## Affected

- `revopic_photo_reviews_for_woocommerce <= 1.2.31`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
