CVE-2026-4895: Greenshift <= 12.8.9 - Authenticated (Contributor+) Stored Cross-Site Scripting via disablelazy Attribute
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 gspbgreenShiftblockscriptassets() function. The function uses strreplace() 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 strreplace 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.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-4895?
CVE-2026-4895 is classified as a medium severity vulnerability due to its potential for allowing stored cross-site scripting attacks.
How do I fix CVE-2026-4895?
To fix CVE-2026-4895, upgrade the GreenShift - Animation and Page Builder Blocks plugin to version 12.8.10 or later.
What systems are affected by CVE-2026-4895?
CVE-2026-4895 affects versions of the GreenShift - Animation and Page Builder Blocks plugin for WordPress up to and including 12.8.9.
What type of vulnerability is CVE-2026-4895?
CVE-2026-4895 is a stored cross-site scripting (XSS) vulnerability that can be exploited by authenticated users.
Who is vulnerable to CVE-2026-4895?
Users of the GreenShift - Animation and Page Builder Blocks plugin on WordPress who are running affected versions are vulnerable to CVE-2026-4895.