CVE-2026-12995 Missing authorization in Custom Field Template

Medium 4.3 Published Updated

Authenticated contributors can delete arbitrary media files via IDOR in Custom Field Template plugin, causing content loss.

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

What is CVE-2026-12995?

CVE-2026-12995 is a medium-severity missing authorization vulnerability in hiroaki-miyashita Custom Field Template, published on 22 Sep 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

The Custom Field Template plugin for WordPress is vulnerable to Insecure Direct Object Reference in all versions up to, and including, 2.7.8 via the edit_meta_value due to missing validation on a user controlled key. This makes it possible for authenticated attackers, with contributor-level access and above, to delete arbitrary media attachments site-wide by supplying any numeric attachment ID in the file-field parameter alongside the corresponding delete flag, causing content loss and broken pages. Exploitation requires that the attacker's post is governed by a Custom Field Template containing at least one file-type field with the mediaRemove option not enabled, which is the default configuration for file fields.

Weakness: CWE-639

Which versions are affected by CVE-2026-12995?

How do I fix CVE-2026-12995?

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

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2026-12995 being exploited?

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

Sources

Also known as GHSA-82h9-w9pg-f542.

Is CVE-2026-12995 in your software?

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

Check your SBOMs for free