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-2025-13612

CVE-2025-13612: WordPress Gallery Plugin XSS Vulnerability

CVE-2025-13612 is a stored cross-site scripting flaw in the Album and Image Gallery plus Lightbox WordPress plugin affecting versions up to 2.1.7. This post explains its impact, affected versions, and mitigation steps.

Published: February 20, 2026

CVE-2025-13612 Overview

The Album and Image Gallery plus Lightbox plugin for WordPress contains a Stored Cross-Site Scripting (XSS) vulnerability in the aigpl-gallery-album shortcode. All versions up to and including 2.1.7 are affected due to insufficient input sanitization and output escaping on user-supplied attributes. This vulnerability enables authenticated attackers with contributor-level access or above to inject arbitrary web scripts into pages that execute whenever a user accesses the injected page.

Critical Impact

Authenticated attackers can inject persistent malicious scripts that execute in the browsers of site visitors, potentially leading to session hijacking, credential theft, or malware distribution.

Affected Products

  • Album and Image Gallery plus Lightbox plugin for WordPress versions ≤ 2.1.7
  • WordPress installations using the vulnerable aigpl-gallery-album shortcode
  • Any WordPress site with contributor-level or higher user accounts with malicious intent

Discovery Timeline

  • 2026-02-19 - CVE CVE-2025-13612 published to NVD
  • 2026-02-19 - Last updated in NVD database

Technical Details for CVE-2025-13612

Vulnerability Analysis

This Stored Cross-Site Scripting vulnerability exists within the aigpl-gallery-album shortcode handler of the Album and Image Gallery plus Lightbox plugin. The plugin fails to properly sanitize and escape user-supplied attributes when processing shortcode parameters, allowing malicious JavaScript code to be stored in the WordPress database and rendered to all visitors viewing the affected page.

The vulnerability is classified under CWE-79 (Improper Neutralization of Input During Web Page Generation), which represents a common weakness in web applications where user-controllable input is not properly validated before being included in dynamic web content. The attack can be executed remotely over the network and requires low privileges (contributor-level access), making it accessible to authenticated users who may not have full administrative rights.

Root Cause

The root cause is insufficient input sanitization and output escaping within the shortcode processing logic. Specifically, the aigpl-gallery-album.php shortcode file and associated template files (design-1.php) do not adequately filter or encode user-supplied attribute values before rendering them in HTML output. This allows attackers to craft shortcode attributes containing JavaScript payloads that are stored and later executed in visitors' browsers.

Attack Vector

The attack requires an authenticated user with at least contributor-level privileges on the WordPress site. The attacker creates or edits a post or page containing the vulnerable aigpl-gallery-album shortcode with malicious attribute values. When the content is saved, the malicious payload is stored in the database. Subsequently, any user who views the page will have the malicious script executed in their browser context.

The vulnerability is exploited through the network without requiring any user interaction beyond normal page viewing. Because the script is stored persistently, this attack can affect multiple victims over an extended period until the malicious content is removed or the vulnerability is patched.

The vulnerable code paths can be reviewed in the WordPress Plugin Shortcode File and template design files. For detailed technical analysis, refer to the Wordfence Vulnerability Analysis.

Detection Methods for CVE-2025-13612

Indicators of Compromise

  • Unusual or obfuscated JavaScript code within post or page content containing the aigpl-gallery-album shortcode
  • Shortcode attributes containing script tags, event handlers (e.g., onerror, onload), or JavaScript URIs
  • Unexpected outbound network connections from visitor browsers to unknown domains
  • Reports of browser warnings or unexpected pop-ups when viewing gallery pages

Detection Strategies

  • Scan WordPress database content for suspicious patterns within aigpl-gallery-album shortcode usage, particularly looking for <script>, javascript:, or HTML event handlers
  • Implement Web Application Firewall (WAF) rules to detect XSS payloads in shortcode parameters
  • Monitor server logs for content modifications by contributor-level users that include potentially malicious scripts
  • Use browser-based Content Security Policy (CSP) violation reporting to detect unexpected script execution

Monitoring Recommendations

  • Enable WordPress activity logging to track all content modifications, especially those involving shortcodes
  • Configure real-time alerts for posts or pages edited by contributor-level users containing gallery shortcodes
  • Deploy endpoint detection solutions to monitor for signs of XSS exploitation such as cookie exfiltration or DOM manipulation
  • Regularly audit user accounts with contributor-level access or above for unauthorized activity

How to Mitigate CVE-2025-13612

Immediate Actions Required

  • Update the Album and Image Gallery plus Lightbox plugin to a version newer than 2.1.7 where the vulnerability has been patched
  • Review and audit all existing posts and pages using the aigpl-gallery-album shortcode for potentially malicious content
  • Temporarily restrict contributor-level access or disable the vulnerable shortcode functionality until patching is complete
  • Implement a Web Application Firewall with XSS protection rules to provide an additional layer of defense

Patch Information

The vulnerability has been addressed in a security update for the Album and Image Gallery plus Lightbox plugin. Administrators should update to the latest available version through the WordPress plugin repository. The patch changes can be reviewed in the WordPress Plugin Change Set.

Workarounds

  • Temporarily deactivate the Album and Image Gallery plus Lightbox plugin if an immediate update is not possible
  • Restrict user roles by removing contributor-level access from untrusted accounts until the patch is applied
  • Implement Content Security Policy headers to mitigate the impact of any stored XSS payloads that may already exist
  • Manually review and sanitize any existing content that uses the aigpl-gallery-album shortcode
bash
# WordPress configuration to enhance security
# Add to wp-config.php to restrict contributors from editing published content
define('DISALLOW_FILE_EDIT', true);

# Consider implementing CSP headers in .htaccess or web server config
# Header set Content-Security-Policy "script-src 'self';"

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

  • 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 Shortcode File

  • WordPress Plugin Template Design 1

  • WordPress Plugin Template Design 1

  • WordPress Plugin Change Set

  • Wordfence Vulnerability Analysis
  • Related CVEs
  • CVE-2023-54358: adivaha Travel Plugin XSS Vulnerability

  • CVE-2026-3005: WordPress List Category Posts XSS Flaw

  • CVE-2026-5742: WordPress UsersWP Plugin XSS Vulnerability

  • CVE-2026-4336: WordPress Ultimate FAQ Accordion XSS Flaw
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