CVE-2026-4066
Received Received - Intake
Unauthorized Data Access in Smart Custom Fields WordPress Plugin

Publication date: 2026-03-23

Last updated on: 2026-03-23

Assigner: Wordfence

Description
The Smart Custom Fields plugin for WordPress is vulnerable to unauthorized access of data due to a missing capability check on the relational_posts_search() function in all versions up to, and including, 5.0.6. This makes it possible for authenticated attackers, with Contributor-level access and above, to read private and draft post content from other authors via the smart-cf-relational-posts-search AJAX action. The function queries posts with post_status=any and returns full WP_Post objects including post_content, but only checks the generic edit_posts capability instead of verifying whether the requesting user has permission to read each individual post.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-03-23
Last Modified
2026-03-23
Generated
2026-06-16
AI Q&A
2026-03-24
EPSS Evaluated
2026-06-15
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
smart_custom_fields smart_custom_fields to 5.0.6 (inc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-862 The product does not perform an authorization check when an actor attempts to access a resource or perform an action.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

The Smart Custom Fields plugin for WordPress has a vulnerability due to a missing capability check in the relational_posts_search() function in all versions up to 5.0.6.

This flaw allows authenticated users with Contributor-level access or higher to access private and draft post content authored by other users.

The vulnerability arises because the function only checks a generic edit_posts capability instead of verifying if the user has permission to read each specific post.

As a result, attackers can use the smart-cf-relational-posts-search AJAX action to retrieve full post objects, including the post content, regardless of the post's privacy status.

Impact Analysis

This vulnerability can lead to unauthorized disclosure of private and draft content from other authors on a WordPress site using the affected plugin.

An attacker with Contributor-level access or higher could read sensitive or unpublished information that they should not have access to.

This could result in information leakage, loss of confidentiality, and potential damage to the privacy and trust of content creators.

Compliance Impact

I don't know

Detection Guidance

I don't know

Mitigation Strategies

I don't know

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