Skip to main content

WordPress CVE-2026-4895

| EUVDEUVD-2026-21647 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-04-11 Wordfence
6.4
CVSS 3.1 · NVD
Share

Severity by source

NVD PRIMARY
6.4 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

3
EUVD ID Assigned
Apr 11, 2026 - 01:30 euvd
EUVD-2026-21647
Analysis Generated
Apr 11, 2026 - 01:30 vuln.today
CVE Published
Apr 11, 2026 - 01:24 nvd
MEDIUM 6.4

DescriptionCVE.org

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.

AnalysisAI

Stored cross-site scripting in GreenShift - Animation and Page Builder Blocks plugin for WordPress up to version 12.8.9 allows authenticated contributors to inject arbitrary JavaScript into pages via improper HTML string manipulation in the gspb_greenShift_block_script_assets() function. The vulnerability exploits a naive str_replace() operation that fails to parse HTML context, enabling attackers to break out of attribute boundaries and inject malicious event handlers like onfocus with JavaScript payloads that execute when users access affected pages. No public exploit code has been identified; however, the low attack complexity and straightforward injection vector make this a practical risk for sites with untrusted contributors.

Technical ContextAI

The vulnerability resides in the gspb_greenShift_block_script_assets() function within the GreenShift WordPress plugin (CPE: cpe:2.3:a:wpsoul:greenshift_-_animation_and_page_builder_blocks:*:*:*:*:*:*:*:*), which processes greenshift-blocks/image blocks when the disablelazy attribute is enabled. The function uses PHP's str_replace() to insert the string 'fetchpriority="high"' before 'src=' attributes in HTML markup. This approach treats HTML as plain text rather than parsing it into a structured DOM, which is fundamentally insecure. An authenticated attacker with contributor-level privileges can craft block parameters containing the literal string 'src=' embedded within HTML attribute values (for example, in a class attribute like class="src="onclick="alert(1)"). When str_replace() processes the full HTML string, it matches this embedded 'src=' substring and performs the replacement, inserting 'fetchpriority="high"' before it. The double-quote characters in the replacement string then break out of the surrounding attribute context, allowing the injection of additional HTML attributes such as onfocus with inline JavaScript. This is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation, also known as Cross-site Scripting), specifically a stored XSS variant because the malicious payload is persisted in the WordPress database and executed for all subsequent visitors.

RemediationAI

The primary remediation is to upgrade the GreenShift - Animation and Page Builder Blocks plugin to version 12.9.0 or later, which contains the patched code that properly handles HTML attribute insertion. Site administrators should update immediately via the WordPress plugin dashboard (Plugins > Installed Plugins > GreenShift > Update). As a temporary workaround pending upgrade, site owners can restrict contributor-level access to only trusted staff and disable the greenshift-blocks/image block with the disablelazy attribute enabled if it is not essential to site operations, though these measures do not eliminate the vulnerability. The vulnerability fix is documented in the WordPress plugin repository changeset at https://plugins.trac.wordpress.org/changeset/3494855/greenshift-animation-and-page-builder-blocks/trunk/init.php, which shows the replacement of the naive str_replace() logic with proper HTML parsing or escaped attribute construction.

CVE-2016-10045 CRITICAL POC
9.8 Dec 30

The isMail transport in PHPMailer before 5.2.20 might allow remote attackers to pass extra parameters to the mail comman

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

CVE-2024-5084 CRITICAL POC
9.8 May 23

The Hash Form - Drag & Drop Form Builder plugin for WordPress is vulnerable to arbitrary file uploads due to missing fil

CVE-2024-8353 CRITICAL POC
9.8 Sep 28

The GiveWP - Donation Plugin and Fundraising Platform plugin for WordPress is vulnerable to PHP Object Injection in all

CVE-2020-36847 CRITICAL POC
9.8 Jul 12

The Simple File List plugin for WordPress through version 4.2.2 contains an unauthenticated remote code execution vulner

CVE-2025-11749 CRITICAL POC
9.8 Nov 05

The AI Engine WordPress plugin through version 3.1.3 exposes Bearer Token values through the /mcp/v1/ REST API endpoint

CVE-2016-1209 CRITICAL POC
9.8 May 14

The Ninja Forms plugin before 2.9.42.1 for WordPress allows remote attackers to conduct PHP object injection attacks via

CVE-2024-4443 CRITICAL POC
9.8 May 22

The Business Directory Plugin - Easy Listing Directories for WordPress plugin for WordPress is vulnerable to time-based

CVE-2024-1698 CRITICAL POC
9.8 Feb 27

SQL injection in the NotificationX WordPress plugin (versions up to and including 2.8.2) allows unauthenticated remote a

CVE-2023-6875 CRITICAL POC
9.8 Jan 11

The POST SMTP Mailer - Email log, Delivery Failure Notifications and Best Mail SMTP for WordPress plugin for WordPress i

CVE-2024-1512 CRITICAL POC
9.8 Feb 17

The MasterStudy LMS WordPress Plugin - for Online Courses and Education plugin for WordPress is vulnerable to union base

CVE-2024-3495 CRITICAL POC
9.8 May 22

The Country State City Dropdown CF7 plugin for WordPress is vulnerable to SQL Injection via the ‘cnt’ and 'sid' paramete

Share

CVE-2026-4895 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy