CVE-2026-12900 Overview
CVE-2026-12900 is a Stored Cross-Site Scripting (XSS) vulnerability in the Spectra Gutenberg Blocks – Website Builder for the Block Editor plugin for WordPress. The flaw resides in the uagb/image block and affects all versions up to and including 2.19.28. The root cause is insufficient input sanitization and output escaping within the block rendering logic. Authenticated users with Contributor-level access or higher can inject arbitrary JavaScript into pages. The payload executes in the browser context of any visitor viewing the injected page, enabling session theft, forced redirects, and administrative account takeover under the right conditions.
Critical Impact
Authenticated contributors can persist arbitrary JavaScript in WordPress pages, causing script execution against every subsequent visitor including administrators.
Affected Products
- Spectra Gutenberg Blocks – Website Builder for the Block Editor (ultimate-addons-for-gutenberg)
- All plugin versions up to and including 2.19.28
- WordPress sites permitting Contributor-level or higher registration
Discovery Timeline
- 2026-07-20 - CVE-2026-12900 published to the National Vulnerability Database
- 2026-07-22 - Last updated in NVD database
Technical Details for CVE-2026-12900
Vulnerability Analysis
The vulnerability is classified as Cross-Site Scripting [CWE-79]. It stems from the plugin's handling of attributes passed to the uagb/image Gutenberg block. The affected code paths reside in blocks-config/image/class-uagb-image.php and includes/blocks/image/block.php. When the block is rendered, user-supplied attribute values are emitted into HTML output without adequate escaping. An attacker with editorial capability can craft image block attributes that break out of the intended HTML context and introduce script content. Because the payload is persisted in post content, any user who loads the page triggers execution. The vulnerability crosses a security boundary from a lower-privileged contributor to any higher-privileged viewer, which is reflected in the scope-changed CVSS vector.
Root Cause
The plugin fails to apply appropriate sanitization functions such as wp_kses or esc_attr to attributes accepted by the uagb/image block before echoing them to the page. Output escaping is either missing or insufficient for the HTML context in which the values appear. This allows attacker-controlled markup to be interpreted as executable script rather than inert data.
Attack Vector
Exploitation requires an authenticated account with Contributor privileges or higher. The attacker inserts a Spectra image block into a draft or page and populates one of the vulnerable attributes with a payload containing script constructs such as event handlers or javascript: URIs. Once the post is previewed, submitted for review, or published, the payload executes in the browser of any user who loads the rendered page, including editors and administrators. This can lead to session token theft, forced administrative actions via CSRF-style requests, or persistence through account creation.
No verified public exploit code is available. Refer to the Wordfence Vulnerability Report and the affected source in class-uagb-image.php for further technical context.
Detection Methods for CVE-2026-12900
Indicators of Compromise
- Post or page revisions authored by Contributor-level accounts containing uagb/image blocks with unusual attribute values such as onerror, onload, or <script> fragments.
- Unexpected outbound requests from visitor browsers to attacker-controlled domains when loading pages that render Spectra image blocks.
- New administrator accounts or modified user roles following Contributor activity on the site.
Detection Strategies
- Review the wp_posts table for post content containing wp:uagb/image block markers combined with HTML event handler attributes or script tags.
- Audit plugin usage and confirm the installed version of Spectra Gutenberg Blocks against 2.19.28 or earlier.
- Inspect web server access logs for POST requests to /wp-admin/post.php and /wp-json/wp/v2/ endpoints from non-editor accounts followed by anomalous public page views.
Monitoring Recommendations
- Enable a Web Application Firewall with rules that block XSS payloads in authenticated WordPress editor requests.
- Alert on role changes, plugin installations, and administrative account creations occurring shortly after Contributor content submissions.
- Monitor Content Security Policy (CSP) violation reports to surface attempted script execution from unexpected sources.
How to Mitigate CVE-2026-12900
Immediate Actions Required
- Update the Spectra Gutenberg Blocks plugin to a version later than 2.19.28 as soon as the vendor releases a patched build.
- Audit all Contributor and Author accounts and remove any that are unrecognized or inactive.
- Review recent posts and pages containing Spectra image blocks and remove any suspicious markup before publication.
Patch Information
At the time of publication, users should consult the Wordfence Vulnerability Report for the most current fixed version. All releases up to and including 2.19.28 are affected. Apply the vendor patch through the WordPress plugin updater once available and verify the installed version afterward.
Workarounds
- Temporarily restrict user registration and downgrade untrusted Contributor accounts until the plugin is updated.
- Disable the Spectra Gutenberg Blocks plugin if it is not essential to site operations.
- Deploy a Content Security Policy that disallows inline script execution to reduce the impact of stored XSS payloads.
# Verify installed Spectra plugin version and disable if vulnerable
wp plugin get ultimate-addons-for-gutenberg --field=version
wp plugin deactivate ultimate-addons-for-gutenberg
# List users with Contributor role or higher for review
wp user list --role=contributor --fields=ID,user_login,user_email,user_registered
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

