Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-30873 Overview
CVE-2025-30873 is a stored Cross-Site Scripting (XSS) vulnerability in the Greenshift animation and page builder blocks plugin for WordPress, developed by wpsoul. The flaw affects all versions up to and including 11.0.2. An authenticated attacker with low privileges can inject malicious JavaScript that executes in the browsers of users who view the affected page. Successful exploitation requires user interaction and crosses a security scope boundary, enabling theft of session data or redirection to attacker-controlled resources. The issue is tracked under CWE-79 for improper neutralization of input during web page generation.
Critical Impact
Authenticated contributors or editors can store malicious scripts within Greenshift blocks that execute against site visitors and administrators, leading to session hijacking and account takeover.
Affected Products
- wpsoul Greenshift (greenshift-animation-and-page-builder-blocks) WordPress plugin
- All versions from n/a through 11.0.2
- WordPress sites with the Greenshift plugin installed and active
Discovery Timeline
- 2025-03-27 - CVE-2025-30873 published to the National Vulnerability Database (NVD)
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-30873
Vulnerability Analysis
The Greenshift plugin fails to properly sanitize and encode user-supplied input before rendering it within generated web pages. When an authenticated user with content creation privileges inserts crafted payloads into Greenshift block attributes, the plugin stores the raw markup in the WordPress database. The payload is later served to any visitor rendering the page, executing arbitrary JavaScript in the context of the victim's browser session.
Because the vulnerability is stored rather than reflected, exploitation does not require social engineering a victim into clicking a crafted link. The attack scope changes beyond the vulnerable component, meaning injected scripts can act on behalf of higher-privileged users such as administrators who review submitted content.
Root Cause
The root cause is missing output encoding and insufficient input sanitization in Greenshift block rendering routines. Block attributes or inline content accepted by the plugin are written to the page without passing through WordPress sanitization helpers such as wp_kses_post() or appropriate escaping functions like esc_attr() and esc_html(). This allows HTML and <script> constructs supplied by low-privileged authors to persist and later execute.
Attack Vector
Exploitation requires network access to the WordPress site and a low-privileged authenticated account, such as Contributor or Author. The attacker inserts a crafted Greenshift block containing JavaScript payloads, typically within attributes that accept rich text or HTML. When an administrator previews the post or a visitor loads the page, the payload executes in their browser.
Typical post-exploitation goals include stealing authentication cookies, performing privileged actions through the WordPress REST API using the victim's session, injecting backdoors into plugin or theme files via the editor, and pivoting to full site compromise. See the Patchstack WordPress Vulnerability Advisory for additional context.
Detection Methods for CVE-2025-30873
Indicators of Compromise
- Unexpected <script>, onerror, onload, or javascript: strings stored inside wp_posts.post_content for posts using Greenshift blocks
- Outbound HTTP requests from site visitors to unfamiliar domains sourced from WordPress pages
- New administrator accounts, modified user roles, or unexpected plugin installations following content publication by low-privileged users
- Modified .php files in the themes or plugins directory shortly after a contributor submits Greenshift content
Detection Strategies
- Query the WordPress database for Greenshift blocks containing suspicious HTML event handlers or script tags across post_content and postmeta tables
- Monitor WordPress audit logs for post edits by Contributor and Author roles that include block attributes with HTML markup
- Deploy a Web Application Firewall (WAF) rule set that flags XSS payload patterns in wp-admin/post.php and REST API POST requests to /wp/v2/posts
Monitoring Recommendations
- Enable WordPress activity logging and forward events to a centralized SIEM for correlation across authentication, content changes, and admin actions
- Alert on administrator sessions that trigger unusual REST API calls shortly after viewing a contributor-submitted post
- Review browser Content Security Policy (CSP) violation reports for inline script execution attempts on pages rendered by Greenshift
How to Mitigate CVE-2025-30873
Immediate Actions Required
- Update the Greenshift plugin to a version later than 11.0.2 as soon as a patched release is available from wpsoul
- Audit all existing posts and pages built with Greenshift blocks for stored JavaScript payloads and remove malicious entries
- Restrict Contributor and Author roles from using HTML-capable Greenshift block attributes until the patch is applied
- Rotate administrator passwords and invalidate active sessions if suspicious content was published before patching
Patch Information
At publication, the Patchstack advisory lists versions through 11.0.2 as affected. Site operators should consult the Patchstack advisory and the official Greenshift plugin changelog for the fixed release and apply the update across all WordPress environments.
Workarounds
- Temporarily deactivate the Greenshift plugin on sites that permit untrusted authenticated users to publish content
- Enforce a strict Content Security Policy that disallows inline scripts and restricts script sources to trusted origins
- Limit account creation and reduce the number of users with Contributor, Author, or Editor roles to known, trusted individuals
# Example WP-CLI commands to inventory and update the plugin
wp plugin get greenshift-animation-and-page-builder-blocks --field=version
wp plugin update greenshift-animation-and-page-builder-blocks
wp user list --role=contributor --fields=ID,user_login,user_email
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

