Skip to main content
EPSS 0.2%top 88%

CVE-2026-12995: CWE-639 Authorization Bypass Through User-Controlled Key in hiroaki-miyashita Custom Field Template

0
Medium
VulnerabilityCVE-2026-12995cvecve-2026-12995cwe-639
Published: 09/22/2026 (09/22/2026, 07:41:09 UTC)
Source: CVE Database V5
Vendor/Project: hiroaki-miyashita
Product: Custom Field Template

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.

CVSS v3.1

Score 4.3medium

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

Affected software

hiroaki-miyashita

Custom Field Template

Affected versions
>=0 <=2.7.8

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/22/2026, 08:19:36 UTC

Technical Analysis

CVE-2026-12995 is an authorization bypass vulnerability (CWE-639) in the Custom Field Template plugin for WordPress versions up to and including 2.7.8. The flaw arises from an insecure direct object reference via the edit_meta_value function, where a user-controlled key lacks proper validation. This allows authenticated users with contributor-level privileges or higher to delete arbitrary media attachments by supplying any numeric attachment ID in the file-field parameter along with a delete flag. Exploitation depends on the presence of a Custom Field Template governing the attacker's post that contains at least one file-type field with the default mediaRemove option disabled.

Potential Impact

An attacker with contributor-level access or higher can delete arbitrary media attachments across the site, leading to content loss and broken pages. There is no impact on confidentiality or availability according to the CVSS vector; the impact is limited to integrity (I:L). No known exploits are reported in the wild.

Mitigation Recommendations

No official patch or fix is currently available. Users should monitor the vendor advisory for updates. As a temporary mitigation, administrators may consider enabling the mediaRemove option on file-type fields in Custom Field Templates if feasible, or restricting contributor-level access until a fix is released. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
Wordfence
Date Reserved
2026-06-23T13:14:40.474Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6ab23644f7a7c54106e0423f

Added to database: 09/22/2026, 08:03:16 UTC

Last enriched: 09/22/2026, 08:19:36 UTC

Last updated: 09/23/2026, 01:58:07 UTC

Views: 15

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses