CVE-2026-12995
Received Received - Intake

Insecure Direct Object Reference in Custom Field Template Plugin

Vulnerability report for CVE-2026-12995, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-22

Last updated on: 2026-09-22

Assigner: Wordfence

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 Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-22
Last Modified
2026-09-22
Generated
2026-09-22
AI Q&A
2026-09-22
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
custom_field_template custom_field_template to 2.7.8 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-639 The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

The Custom Field Template plugin for WordPress has an Insecure Direct Object Reference vulnerability in versions up to 2.7.8. It allows authenticated attackers with contributor-level access or higher to delete arbitrary media files by exploiting a missing validation on a user-controlled key in the edit_meta_value function. Attackers can supply a numeric attachment ID in the file-field parameter with a delete flag to cause content loss and broken pages.

Detection Guidance

To detect this vulnerability, check WordPress sites using the Custom Field Template plugin versions up to 2.7.8. Look for unauthorized deletion of media attachments by reviewing server logs for suspicious file deletion requests or changes to media library entries.

Impact Analysis

This vulnerability can lead to unauthorized deletion of media files on a WordPress site, causing content loss and broken pages. Attackers with contributor-level access can exploit it to remove important media attachments, disrupting site functionality and user experience.

Compliance Impact

This vulnerability could lead to unauthorized deletion of media attachments, potentially causing data loss. For GDPR, this may violate integrity and availability principles if personal data is affected. For HIPAA, unauthorized deletion of protected health information could result in non-compliance with access controls and integrity requirements.

Mitigation Strategies

Immediately update the Custom Field Template plugin to the latest version. If an update is unavailable, disable the plugin temporarily. Review user roles with contributor access or higher and restrict unnecessary permissions. Monitor media library for unauthorized deletions.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-12995. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart