CVE-2026-4895
Received Received - Intake
Stored XSS in GreenShift WordPress Plugin Allows Script Injection

Publication date: 2026-04-11

Last updated on: 2026-04-11

Assigner: Wordfence

Description
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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-04-11
Last Modified
2026-04-11
Generated
2026-06-16
AI Q&A
2026-04-11
EPSS Evaluated
2026-06-14
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
greenshift animation_and_page_builder_blocks to 12.8.9 (inc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

The GreenShift - Animation and Page Builder Blocks plugin for WordPress has a Stored Cross-Site Scripting (XSS) vulnerability in versions up to and including 12.8.9. This occurs because the function gspb_greenShift_block_script_assets() uses str_replace() to insert 'fetchpriority="high"' before 'src=' attributes in certain blocks without properly parsing the HTML. Contributors with at least contributor-level access can inject the string 'src=' into HTML attribute values, which causes the replacement to break out of the attribute context and allows injection of malicious HTML attributes like onfocus with JavaScript payloads. This enables attackers to inject arbitrary scripts that execute when users access the affected pages.

Impact Analysis

This vulnerability allows authenticated users with contributor-level access or higher to inject malicious scripts into pages. These scripts execute whenever any user views the infected page, potentially leading to unauthorized actions such as stealing user data, hijacking user sessions, or performing actions on behalf of users without their consent.

Compliance Impact

The provided context does not include information on how this vulnerability affects compliance with common standards and regulations such as GDPR or HIPAA.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-4895. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart