Description
The TinyPNG – JPEG, PNG & WebP image compression plugin for WordPress is vulnerable to arbitrary file deletion due to insufficient file path validation in the delete_converted_image_size function in all versions up to, and including, 3.6.13. This makes it possible for authenticated attackers, with author-level access and above, to delete arbitrary files on the server, which can easily lead to remote code execution when the right file is deleted (such as wp-config.php). An attacker can exploit this by injecting an arbitrary server file path into the 'convert.path' field of the 'tiny_compress_images' post meta on an attachment they own, then triggering attachment deletion to invoke the vulnerable code path.
Published: 2026-07-02
Score: 8.1 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The TinyPNG – JPEG, PNG & WebP image compression plugin for WordPress contains a path traversal flaw in the delete_converted_image_size function. Because the plugin does not properly validate the file path supplied in the 'convert.path' field of the 'tiny_compress_images' post meta, an actor that has author‑level or higher access can inject an arbitrary server file path. When that attachment is deleted, the vulnerable code path triggers deletion of the specified file, allowing attackers to remove critical site files such as wp-config.php and potentially execute code located in or after the deletion operation. The weakness is identified as a classic path‑traversal vulnerability (CWE‑22).

Affected Systems

All WordPress sites that use the TinyPNG plugin, version 3.6.13 or earlier, are affected. Users with author‑level or higher roles can exploit the flaw. The issue is independent of the WordPress core version and exposes any file that the plugin’s delete operation can reach via the supplied file path.

Risk and Exploitability

The CVSS v3.1 score of 8.1 indicates high severity, while the EPSS score of less than 1% points to a low probability of exploitation at this time. The vulnerability is not listed in the CISA KEV catalog, so no active exploit activity is recorded. Exploitation requires authenticated access to an attachment’s post meta, injection of a file path into the 'convert.path' field, and triggering of the attachment’s deletion. If an attacker deletes a pivotal file such as wp-config.php, remote code execution and full site compromise can ensue.

Generated by OpenCVE AI on August 1, 2026 at 21:13 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the TinyPNG plugin to a version where delete_converted_image_size has been fixed.
  • If an update is not immediately possible, delete or deactivate the TinyPNG plugin to prevent use of the vulnerable code.
  • Restrict the delete_attachments capability so that only administrators can delete attachments, thereby limiting an author‑level user’s ability to trigger the vulnerable delete operation.

Generated by OpenCVE AI on August 1, 2026 at 21:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 06 Jul 2026 23:15:00 +0000

Type Values Removed Values Added
First Time appeared Tinypng
Tinypng tinypng – Jpeg, Png & Webp Image Compression
Wordpress
Wordpress wordpress
Vendors & Products Tinypng
Tinypng tinypng – Jpeg, Png & Webp Image Compression
Wordpress
Wordpress wordpress

Thu, 02 Jul 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 02 Jul 2026 19:15:00 +0000

Type Values Removed Values Added
Description The TinyPNG – JPEG, PNG & WebP image compression plugin for WordPress is vulnerable to arbitrary file deletion due to insufficient file path validation in the delete_converted_image_size function in all versions up to, and including, 3.6.13. This makes it possible for authenticated attackers, with author-level access and above, to delete arbitrary files on the server, which can easily lead to remote code execution when the right file is deleted (such as wp-config.php). An attacker can exploit this by injecting an arbitrary server file path into the 'convert.path' field of the 'tiny_compress_images' post meta on an attachment they own, then triggering attachment deletion to invoke the vulnerable code path.
Title TinyPNG <= 3.6.13 - Authenticated (Author+) Arbitrary File Deletion via 'convert.path' in 'tiny_compress_images' Post Meta
Weaknesses CWE-22
References
Metrics cvssV3_1

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


Subscriptions

Tinypng Tinypng – Jpeg, Png & Webp Image Compression
Wordpress Wordpress
cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-07-02T19:40:57.141Z

Reserved: 2026-04-28T12:43:26.086Z

Link: CVE-2026-7311

cve-icon Vulnrichment

Updated: 2026-07-02T19:40:51.075Z

cve-icon NVD

Status : Deferred

Published: 2026-07-02T19:17:00.127

Modified: 2026-07-06T18:02:49.450

Link: CVE-2026-7311

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-01T21:15:04Z

Weaknesses
  • CWE-22

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