Skip to main content
CVE Vulnerability Database
Vulnerability Database/CVE-2025-32527

CVE-2025-32527: T&P Gallery Slider Stored XSS Vulnerability

CVE-2025-32527 is a stored cross-site scripting vulnerability in the T&P Gallery Slider WordPress plugin that enables attackers to inject malicious scripts. This article covers technical details, affected versions, and mitigation.

Updated:

CVE-2025-32527 Overview

CVE-2025-32527 is a stored Cross-Site Scripting (XSS) vulnerability in the pey22 T&P Gallery Slider plugin (tp-gallery-slider) for WordPress. The flaw stems from improper neutralization of user-supplied input during web page generation [CWE-79]. Attackers can inject malicious JavaScript that is persistently stored and executed when other users render the affected pages. The vulnerability affects all versions of T&P Gallery Slider up to and including 1.2. Exploitation requires victim interaction, but the scope is changed because injected scripts run in the context of the WordPress site visited by administrators or visitors.

Critical Impact

Stored JavaScript executes in the browser context of any user viewing affected gallery content, enabling session theft, admin account takeover, and malicious redirects.

Affected Products

  • pey22 T&P Gallery Slider WordPress plugin (tp-gallery-slider)
  • All versions from n/a through 1.2
  • WordPress sites with the plugin installed and active

Discovery Timeline

  • 2025-04-17 - CVE-2025-32527 published to NVD
  • 2026-04-23 - Last updated in NVD database

Technical Details for CVE-2025-32527

Vulnerability Analysis

The vulnerability is a stored Cross-Site Scripting flaw classified under [CWE-79]. The T&P Gallery Slider plugin fails to sanitize or encode user-controllable input before storing it and reflecting it back during web page generation. When an attacker submits crafted input containing HTML or JavaScript payloads, the plugin persists the data in the WordPress database without neutralization.

When a victim subsequently loads a page that renders the stored content, the browser parses the injected markup and executes the attacker's script. The scope change indicated by the CVSS vector reflects that the script executes within the security context of the WordPress site, not just the vulnerable plugin component.

Exploitation does require user interaction, typically a victim visiting a page containing the malicious gallery content. The attacker does not need any privileges to deliver the payload across the network. Refer to the Patchstack WordPress Vulnerability advisory for additional technical context.

Root Cause

The root cause is missing or insufficient output encoding and input sanitization within the plugin's rendering logic. User-supplied gallery fields are written to the database and later emitted into the HTML response without functions such as esc_html(), esc_attr(), or wp_kses() applied appropriately.

Attack Vector

The attack vector is network-based with low attack complexity. An attacker injects a JavaScript payload through a plugin input field that accepts gallery metadata. The payload is stored persistently. When an administrator or site visitor loads the affected page, the script executes in their browser, enabling cookie theft, session hijacking, forced administrative actions, or redirection to attacker-controlled infrastructure.

No verified exploit code is publicly available. The vulnerability mechanism is described in the Patchstack advisory linked above.

Detection Methods for CVE-2025-32527

Indicators of Compromise

  • Unexpected <script> tags, onerror, or onload attributes stored in wp_options or wp_postmeta entries associated with the T&P Gallery Slider plugin.
  • Outbound browser requests from site visitors to unknown third-party domains immediately after rendering gallery pages.
  • New or modified WordPress administrator accounts created shortly after gallery content was added or edited.

Detection Strategies

  • Audit the WordPress database for HTML tags or JavaScript event handlers within fields managed by tp-gallery-slider.
  • Inspect rendered HTML of pages containing the gallery shortcode for unexpected inline scripts.
  • Review web server access logs for POST requests to plugin endpoints originating from unauthenticated sources.

Monitoring Recommendations

  • Enable a Web Application Firewall (WAF) with rules that flag script payloads in plugin parameters.
  • Monitor WordPress administrator session activity for anomalous actions following gallery page views.
  • Alert on file integrity changes within wp-content/plugins/tp-gallery-slider/.

How to Mitigate CVE-2025-32527

Immediate Actions Required

  • Deactivate the T&P Gallery Slider plugin on all WordPress instances running version 1.2 or earlier until a patched release is verified.
  • Review all existing gallery entries and remove any content containing HTML or JavaScript payloads.
  • Force a password reset for WordPress administrator accounts if suspicious activity is observed.

Patch Information

At the time of NVD publication, no fixed version had been identified by the vendor. Monitor the Patchstack advisory and the WordPress plugin repository for an updated release beyond version 1.2.

Workarounds

  • Remove the plugin entirely and replace it with an actively maintained gallery slider alternative.
  • Restrict plugin configuration access to trusted administrators using least-privilege role assignments.
  • Deploy a WAF policy that blocks requests containing <script> tags or JavaScript event handlers targeting plugin endpoints.

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

Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.