Greenshift <= 12.8.9 - Authenticated (Contributor+) Stored Cross-Site Scripting via disablelazy Attribute
Strategic Overview
- Status
- Patched in 12.9.0
- Affected Plugin
- Greenshift – animation and page builder blocks
- Affected Version
<= 12.8.9- CVSS
- 6.4Medium
- Weakness type
- CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
- CVE
CVE-2026-4895
At a glance
CVE-2026-4895 is a medium-severity Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in the Greenshift WordPress plugin, affecting versions <= 12.8.9. It carries a CVSS score of 6.4 (reachable over the network; low attack complexity). Exploitation requires an authenticated account at Contributor level or above. The issue is fixed in version 12.9.0; sites on affected versions should update now. Disclosed April 2026, reported by Muhammad Yudha - DJ.
Vulnerability Overview
The GreenShift - Animation and Page Builder Blocks plugin for WordPress is vulnerable to Stored Cross-Site Scripting in versions up to, and including, 12.8.9 This is due to insufficient input sanitization and output escaping in the gspb_greenShift_block_script_assets() function. The function uses str_replace() to insert 'fetchpriority="high"' before 'src=' attributes when processing greenshift-blocks/image blocks with the disablelazy attribute enabled. Because this replacement operates on the entire HTML string without parsing, contributors can inject the string 'src=' into HTML attribute values (such as class attributes). When the str_replace executes, the double quotes in the replacement string break out of the attribute context, allowing injection of malicious HTML attributes like onfocus with JavaScript payloads. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
Technical Analysis
The vector marks this flaw as remotely reachable over the network, with low attack complexity — no special timing or configuration is needed, and no interaction from a victim user.
CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Greenshift <= 12.8.9 carries this weakness at high, and reaching it takes an account at Contributor level or above. Cross-site scripting happens when input from a request is written into a page without being escaped for the context it lands in, so the browser parses attacker-supplied text as markup or script.
Injected script runs with the privileges of whoever views the affected page, which is how these flaws turn into administrator session theft, silent account creation or persistent backdoors in page content. For Greenshift the fix is 12.9.0: builds <= 12.8.9 are affected, anything from 12.9.0 onward is not.
Remediation
Update to version 12.9.0, or a newer patched version
How does WordSec protect against this?
An attacker needs Contributor access first, so the firewall sees the attempt as traffic from a logged-in account: WordSec's web application firewall inspects request payloads before WordPress loads them. None of that substitutes for the fix: Greenshift 12.9.0 closes this, and updating the plugin is the step that ends it.
- Firewall
- Alerts
External References
Related records
Same weakness class
Other vulnerabilities in Greenshift – animation and page builder blocks
- 8.8CVE-2025-3616: Greenshift 11.4 - 11.4.5 Arbitrary File Upload
CVE-2025-3616 - 7.2CVE-2023-6636: Greenshift Arbitrary File Upload
CVE-2023-6636 - 6.4CVE-2025-26884: Greenshift <= 10.8 Stored Cross-Site Scripting
CVE-2025-26884 - 6.4CVE-2024-6155: Greenshift Authenticated (Subscriber+) SSRF and Stored
CVE-2024-6155 - 6.4CVE-2024-44005: Greenshift Stored XSS
CVE-2024-44005 - 6.4CVE-2024-35765: Greenshift Stored XSS
CVE-2024-35765 - 6.4CVE-2023-22707: Greenshift Stored XSS
CVE-2023-22707 - 6.4CVE-2023-0378: Greenshift Stored XSS
CVE-2023-0378
Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C