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-4379

CVE-2026-4379: LightPress Lightbox WordPress XSS Flaw

CVE-2026-4379 is a stored cross-site scripting vulnerability in the LightPress Lightbox WordPress plugin allowing authenticated attackers to inject malicious scripts. This article covers technical details, affected versions, and mitigation.

Published: April 10, 2026

CVE-2026-4379 Overview

The LightPress Lightbox plugin for WordPress contains a Stored Cross-Site Scripting (XSS) vulnerability in the group attribute of the [gallery] shortcode. All versions up to and including 2.3.4 are affected by this security flaw. The vulnerability exists because the plugin modifies gallery shortcode output to include the group attribute value without proper escaping, enabling authenticated attackers with Contributor-level access or above to inject arbitrary web scripts into pages that execute whenever a user accesses the compromised page.

Critical Impact

Authenticated attackers with minimal privileges can inject persistent malicious scripts that execute in the browsers of all users viewing affected pages, potentially leading to session hijacking, credential theft, or further compromise of the WordPress site.

Affected Products

  • LightPress Lightbox plugin for WordPress versions up to and including 2.3.4
  • WordPress installations using the vulnerable wp-jquery-lightbox plugin
  • Sites allowing Contributor-level or higher user access

Discovery Timeline

  • April 8, 2026 - CVE-2026-4379 published to NVD
  • April 8, 2026 - Last updated in NVD database

Technical Details for CVE-2026-4379

Vulnerability Analysis

This Stored Cross-Site Scripting vulnerability (CWE-79) resides in the LightPress Lightbox plugin's handling of the [gallery] shortcode. When the plugin processes gallery shortcodes, it incorporates the group attribute value directly into the rendered HTML output without applying proper sanitization or escaping. This allows malicious JavaScript code embedded in the attribute to be stored in the database and executed when any user views the page containing the compromised gallery.

The attack requires only Contributor-level access, which is a relatively low privilege threshold in WordPress environments. Once the malicious shortcode is saved, the injected script persists and executes in the context of any visitor's browser session, including administrators. This cross-scope impact makes the vulnerability particularly dangerous for multi-user WordPress installations.

Root Cause

The root cause is insufficient input validation and output encoding in the plugin's shortcode processing logic. Specifically, the vulnerability originates in the class-wp-jquery-lightbox.php file where the group attribute is processed at line 376 and output at line 395. The plugin fails to use WordPress escaping functions such as esc_attr() or esc_html() before rendering user-controlled data in HTML attributes, allowing script injection.

Attack Vector

The attack is network-based and requires authentication at the Contributor level or higher. An attacker must be able to create or edit posts containing the [gallery] shortcode. The malicious payload is crafted by inserting JavaScript code into the group attribute of the shortcode. For example, an attacker could inject event handlers or script tags that execute when the gallery is rendered.

The attacker creates a post or page with a malicious gallery shortcode containing JavaScript in the group attribute. When this content is saved and subsequently viewed by any user, including administrators, the injected script executes in their browser context. This enables the attacker to steal session cookies, perform actions on behalf of the victim, redirect users to malicious sites, or inject additional malicious content.

Detection Methods for CVE-2026-4379

Indicators of Compromise

  • Posts or pages containing [gallery] shortcodes with suspicious group attribute values containing JavaScript event handlers like onload, onerror, or onclick
  • Database entries in wp_posts table with gallery shortcodes containing encoded or obfuscated script content
  • Unusual outbound network requests from visitor browsers to unfamiliar domains
  • Reports of unexpected redirects or pop-ups on pages containing image galleries

Detection Strategies

  • Implement Web Application Firewall (WAF) rules to detect XSS patterns in shortcode attributes
  • Perform regular database audits scanning for JavaScript patterns within shortcode content
  • Enable WordPress debug logging and monitor for suspicious shortcode processing activity
  • Deploy Content Security Policy (CSP) headers to detect and report inline script execution attempts

Monitoring Recommendations

  • Monitor user activity logs for Contributors or Authors creating gallery shortcodes with unusual attribute values
  • Set up alerts for new post/page creations containing the [gallery] shortcode with complex group attribute values
  • Review browser console logs for Content Security Policy violations indicating script injection attempts
  • Implement file integrity monitoring on the wp-jquery-lightbox plugin directory

How to Mitigate CVE-2026-4379

Immediate Actions Required

  • Update the LightPress Lightbox (wp-jquery-lightbox) plugin to version 2.3.5 or later immediately
  • Review all existing posts and pages containing [gallery] shortcodes for suspicious group attribute values
  • Temporarily restrict Contributor access until the plugin is updated
  • Audit user accounts with Contributor privileges or higher for unauthorized activity

Patch Information

The vulnerability has been addressed in version 2.3.5 of the plugin. The patch implements proper escaping of the group attribute value before it is included in the HTML output. Administrators should review the changeset between versions 2.3.4 and 2.3.5 to understand the specific fix. For detailed vulnerability analysis, consult the Wordfence threat intelligence report.

Workarounds

  • Temporarily deactivate the LightPress Lightbox plugin until the update can be applied
  • Restrict user role capabilities to prevent Contributors from using shortcodes (use a role management plugin)
  • Implement server-side Content Security Policy headers to mitigate the impact of any injected scripts
  • Deploy a WordPress security plugin with XSS filtering capabilities to sanitize shortcode output
bash
# WordPress CLI commands to manage the vulnerability
# Update the plugin to the patched version
wp plugin update wp-jquery-lightbox

# Verify the installed version
wp plugin list --name=wp-jquery-lightbox --fields=name,version,status

# Temporarily deactivate if update is not immediately available
wp plugin deactivate wp-jquery-lightbox

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.01%

  • 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

  • WordPress Plugin Code Line

  • WordPress Plugin Changeset 2.3.4 to 2.3.5

  • Wordfence Vulnerability Analysis
  • Related CVEs
  • CVE-2026-7448: LatePoint WordPress Plugin XSS Vulnerability

  • CVE-2026-7332: LatePoint WordPress Plugin XSS Vulnerability

  • CVE-2026-7457: WordPress LatePoint Plugin XSS Vulnerability

  • CVE-2026-6672: SliceWP Affiliates Plugin 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