CVE-2026-12995: CWE-639 Authorization Bypass Through User-Controlled Key in hiroaki-miyashita Custom Field Template
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.
AI Analysis
Technical Summary
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.
CVE-2026-12995: CWE-639 Authorization Bypass Through User-Controlled Key in hiroaki-miyashita 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
Affected software
hiroaki-miyashita
Custom Field Template
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.