CVE-2026-16940 Custom Fields for WooCommerce < 1.5.1 - Unauthenticated Arbitrary File Deletion via Path Traversal

Critical 10.0 Published Updated

Unauthenticated attackers can delete arbitrary files via path traversal, potentially leading to full site takeover.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-16940?

CVE-2026-16940 is a critical path traversal vulnerability in Unknown Custom Fields, published on 5 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The Custom Fields WordPress plugin before 1.5.1 does not validate a user-supplied file path before deletion, allowing unauthenticated users to delete arbitrary files on the server (such as wp-config.php), which can lead to a full site takeover.

Weakness: CWE-22

Which versions are affected by CVE-2026-16940?

How do I fix CVE-2026-16940?

No fix has been published for CVE-2026-16940 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-16940 being exploited?

There is no known exploitation of CVE-2026-16940 in the wild and no public exploit code.

Sources

Also known as GHSA-m93v-54x2-539c.

Is CVE-2026-16940 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free