/

CVE-2026-125054

Severity:

HIGH RISK

(7.2)

Stored DOM-Based XSS (CWE-79) in SiteOrigin CSS Plugin

CVE-2026-125054

Deferred

Vulnerability type

Category:

Stored DOM-Based Cross-Site Scripting

CWE:

CWE-79

Impact:

Client-side script execution in the Visual Inspector context

Severity:

HIGH RISK

(7.2)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

The SiteOrigin CSS WordPress plugin has a stored DOM-based cross-site scripting flaw involving the class parameter. A crafted value can lead to script execution when a user with edit_theme_options opens the Visual Inspector for the affected post and clicks in its preview; storing the value generally requires Contributor-level access, unless a qualifying front-end submission workflow is available.

Affected context

The issue affects SiteOrigin CSS plugin versions up to and including 1.6.9, where the class parameter is insufficiently sanitized or escaped. The stored value is triggered in the Visual Inspector preview of an affected post when a user with the edit_theme_options capability clicks within the preview iframe. On a default installation, storing the crafted value requires Contributor-level or higher access. Unauthenticated submission may be possible when a suitable third-party front-end submission plugin is installed and configured and a moderator approves the submission.

Exploit preconditions

  • Attack surface: Post content rendered in the SiteOrigin CSS Visual Inspector preview
  • Required access: Usually Contributor-level or higher to store the crafted class value; unauthenticated submission depends on a qualifying third-party plugin and moderator approval
  • Trigger point: A user with edit_theme_options opens the Visual Inspector for the affected post and clicks in the preview iframe
  • Why exploitation is possible: The class parameter is not adequately sanitized and its output is not safely escaped, allowing stored input to reach a script-execution context

Why this happens

The plugin does not sufficiently sanitize the class parameter or escape it for the context in which it is rendered. This creates a stored cross-site scripting weakness mapped to CWE-79: Improper Neutralization of Input During Web Page Generation. In this DOM-based case, attacker-controlled stored data can influence the page's DOM and result in script execution when the Visual Inspector preview is interacted with.

Potential impact

  • A script could run in the browser context of a user interacting with the affected preview.
  • An attacker could potentially perform actions available to that user, subject to the user's permissions and applicable browser protections.
  • Sensitive information accessible to the affected page or session could be exposed.
  • The issue could be used to target users with the edit_theme_options capability.

General mitigation guidance

Defensive approaches include applying context-aware sanitization and output encoding to values used in HTML attributes or DOM updates, and treating stored post data as untrusted regardless of the submitting user's role. Where possible, use secure-by-default rendering APIs and constrain class values to an expected format or allowlist. Review access to content submission and approval workflows, and limit user capabilities to those required for their work.

How teams detect issues like this

  • Use static analysis to identify flows from request or stored content parameters into HTML attributes and DOM manipulation without context-appropriate sanitization or encoding.
  • During code review, inspect handling of the class parameter in the Visual Inspector and preview rendering paths.
  • Apply policy checks that require safe output APIs and validation of values used in markup or DOM updates.
  • Review approved front-end submissions and relevant post content for unexpected class values; automated security review tools may help identify risky data flows.

Sources

SourceLink
github.comgithub.com/siteorigin/so-css/compare/1.6.9...1.6.10
plugins.trac.wordpress.orgplugins.trac.wordpress.org/browser/so-css/tags/1.6.9/js/inspector.js#L200
plugins.trac.wordpress.orgplugins.trac.wordpress.org/browser/so-css/tags/1.6.9/js/inspector.js#L419
plugins.trac.wordpress.orgplugins.trac.wordpress.org/browser/so-css/tags/1.6.9/js/inspector.js#L541
plugins.trac.wordpress.orgplugins.trac.wordpress.org/browser/so-css/tags/1.6.9/js/specificity.js#L22
plugins.trac.wordpress.orgplugins.trac.wordpress.org/browser/so-css/tags/1.6.9/so-css.php#L908
wordfence.comwordfence.com/threat-intel/vulnerabilities/id/884b5e3e-a1a0-4706-b9ae-5e3d17df59fc?source=cve

Frequently asked

questions

On a default installation, an attacker generally needs Contributor-level or higher access to store the crafted value. Unauthenticated submission depends on a qualifying third-party front-end submission plugin being configured and a moderator approving the content.

The described trigger is specific: a user with edit_theme_options must open the Visual Inspector for the affected post and click in the preview iframe.

Validate class values against expected constraints and apply context-aware sanitization and output escaping wherever stored values are rendered or used to update the DOM.

Treat stored content as untrusted, use secure rendering APIs, review data flows into HTML and DOM contexts, and limit submission and approval capabilities to what is necessary.

Find out what's already
exploitable in your codebase.