The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-4895

CVE-2026-4895: GreenShift WordPress Plugin XSS Vulnerability

CVE-2026-4895 is a stored cross-site scripting flaw in the GreenShift WordPress plugin affecting versions up to 12.8.9. Attackers with contributor access can inject malicious scripts. This article covers technical details, impact, and mitigation.

Published: April 17, 2026

CVE-2026-4895 Overview

The GreenShift - Animation and Page Builder Blocks plugin for WordPress is vulnerable to Stored Cross-Site Scripting (XSS) in versions up to and including 12.8.9. This vulnerability stems from insufficient input sanitization and output escaping in the gspb_greenShift_block_script_assets() function. Authenticated attackers with contributor-level access or above can inject arbitrary web scripts into pages that execute whenever a user accesses the compromised page.

Critical Impact

Authenticated attackers with contributor-level permissions can inject persistent malicious JavaScript that executes in victims' browsers, potentially leading to session hijacking, credential theft, or unauthorized actions on behalf of site visitors.

Affected Products

  • GreenShift - Animation and Page Builder Blocks plugin for WordPress versions up to and including 12.8.9
  • WordPress installations using vulnerable GreenShift plugin versions
  • Sites where contributors have access to create or edit content using GreenShift blocks

Discovery Timeline

  • April 11, 2026 - CVE-2026-4895 published to NVD
  • April 13, 2026 - Last updated in NVD database

Technical Details for CVE-2026-4895

Vulnerability Analysis

This Stored Cross-Site Scripting vulnerability exists within the GreenShift plugin's asset handling functionality. The vulnerable gspb_greenShift_block_script_assets() function processes greenshift-blocks/image blocks and uses PHP's str_replace() function to insert fetchpriority="high" before src= attributes when the disablelazy attribute is enabled.

The fundamental issue is that the string replacement operates on raw HTML without proper parsing. When the function encounters the string src= anywhere in the HTML—including within attribute values like class names—it performs the replacement. Since the replacement string contains double quotes, this breaks out of the current attribute context, allowing injection of malicious HTML attributes.

Root Cause

The root cause is improper handling of HTML content using naive string operations instead of proper DOM parsing. The str_replace() function in PHP performs literal text replacement without understanding HTML structure or context. When the replacement string fetchpriority="high" (which contains double quotes) is inserted, it can terminate an existing attribute value and allow injection of additional attributes.

This is a classic example of CWE-79 (Improper Neutralization of Input During Web Page Generation) combined with insufficient output escaping. The function fails to validate that src= appears in an appropriate context before performing the replacement.

Attack Vector

The attack is network-based and requires authentication at the contributor level or above. An attacker can craft a malicious image block where the class attribute or other attribute values contain the string src=. When the vulnerable function processes this block, the string replacement injects double quotes that break out of the attribute context.

For example, an attacker could inject the string src= into a class attribute value. When str_replace() executes, it inserts fetchpriority="high" before this occurrence, causing the double quotes to terminate the class attribute prematurely. This allows the attacker to inject event handler attributes such as onfocus with JavaScript payloads that execute when users interact with the page element.

The stored nature of this XSS means the malicious payload persists in the WordPress database and executes every time a user views the affected page, maximizing the attack's potential impact.

Detection Methods for CVE-2026-4895

Indicators of Compromise

  • Unexpected JavaScript event handlers (e.g., onfocus, onerror, onload) in GreenShift image block HTML output
  • Class attributes or other HTML attributes containing suspicious src= strings followed by unexpected markup
  • Malformed HTML in page content where attribute contexts appear broken or nested incorrectly
  • Unusual contributor-level user activity creating or editing pages with GreenShift image blocks

Detection Strategies

  • Review WordPress database content for pages containing GreenShift image blocks with suspicious attribute patterns
  • Implement Content Security Policy (CSP) headers to detect and report inline script execution attempts
  • Monitor web server logs for page requests followed by unusual outbound connections or data exfiltration patterns
  • Scan rendered page HTML for unexpected event handler attributes in image-related elements

Monitoring Recommendations

  • Enable WordPress audit logging to track content modifications by contributor-level users
  • Deploy a Web Application Firewall (WAF) with XSS detection rules tuned for stored XSS patterns
  • Regularly scan WordPress installations for known vulnerable plugin versions using security scanning tools
  • Monitor browser console errors and CSP violation reports for indicators of XSS exploitation attempts

How to Mitigate CVE-2026-4895

Immediate Actions Required

  • Update the GreenShift - Animation and Page Builder Blocks plugin to version 12.9.0 or later immediately
  • Review all pages created or modified by contributor-level users for potential malicious content injection
  • Audit user roles and consider temporarily restricting contributor access until the update is applied
  • Implement Content Security Policy headers to mitigate the impact of any existing injected scripts

Patch Information

The vulnerability has been patched in version 12.9.0 of the GreenShift plugin. The fix addresses the improper string replacement logic in the gspb_greenShift_block_script_assets() function. Technical details of the changes can be found in the WordPress Changeset 3494855 and the version comparison between 12.8.9 and 12.9.0.

For additional vulnerability details, see the Wordfence Vulnerability Report.

Workarounds

  • Temporarily disable the GreenShift plugin if immediate patching is not possible
  • Restrict contributor-level user access to prevent creation of potentially malicious content
  • Avoid using the disablelazy attribute on GreenShift image blocks until the plugin is updated
  • Deploy a WAF rule to sanitize or block requests containing suspicious HTML attribute injection patterns
bash
# WordPress CLI command to update the GreenShift plugin
wp plugin update greenshift-animation-and-page-builder-blocks

# Verify installed version after update
wp plugin list --name=greenshift-animation-and-page-builder-blocks --fields=name,version,status

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechWordpress

  • SeverityMEDIUM

  • CVSS Score6.4

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • WordPress Plugin Code Line 866

  • WordPress Plugin Code Line 889

  • WordPress Plugin Trunk Line 866

  • WordPress Plugin Trunk Line 889

  • WordPress Changeset 3494855

  • WordPress Version Change 12.8.9 to 12.9.0

  • Wordfence Vulnerability Report
  • Related CVEs
  • CVE-2026-6504: Royal Elementor Addons XSS Vulnerability

  • CVE-2026-6174: CC Child Pages WordPress Plugin XSS Flaw

  • CVE-2026-6252: Meta Field Block WordPress Plugin XSS Flaw

  • CVE-2026-3694: Bold Page Builder WordPress XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English