Description
The Paged Gallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'gallery' shortcode in all versions up to, and including, 0.7 due to insufficient input sanitization and output escaping on user supplied attributes. 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.
Published: 2025-06-06
Score: 6.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Stored Cross‑Site Scripting
Action: Patch
AI Analysis

Impact

The Paged Gallery plugin for WordPress is affected by a stored Cross‑Site Scripting flaw that can be triggered through the plugin’s gallery shortcode. The flaw originates from insufficient input sanitization and output escaping on user‑supplied attributes, enabling attackers to embed malicious scripts. Consequently, whenever a page containing the injected shortcode is viewed, the injected scripts execute in the browsers of all users who access the page.

Affected Systems

The vulnerability is present in all releases of the Paged Gallery plugin up to and including version 0.7. Users who have installed any of these versions on a WordPress site are affected. No other products or versions are listed as impacted.

Risk and Exploitability

The CVSS base score of 6.4 reflects a moderate severity XSS risk. The EPSS score of less than 1% indicates a very low probability of exploitation in the wild, and the vulnerability is not catalogued in CISA’s KEV. Attackers must first authenticate to the WordPress site with a Contributor role or higher, then supply the malicious attributes via the shortcode. Because the flaw is stored, the attack requires only a single authenticated visit to embed the payload; subsequent unauthenticated visitors to the affected page will experience the injected scripts.

Generated by OpenCVE AI on April 20, 2026 at 22:35 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Paged Gallery plugin to the latest available version that removes the XSS vulnerability, or uninstall the plugin if it is no longer needed.
  • If an immediate upgrade is not feasible, restrict Contributor and higher role access to content creation functions, or temporarily replace the gallery shortcode with a safe alternative.
  • After applying the fix, validate that the gallery shortcode no longer outputs unsanitized attributes by testing on a staging environment before deploying to production.

Generated by OpenCVE AI on April 20, 2026 at 22:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
EUVD EUVD EUVD-2025-17067 The Paged Gallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'gallery' shortcode in all versions up to, and including, 0.7 due to insufficient input sanitization and output escaping on user supplied attributes. 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.
History

Fri, 06 Jun 2025 17:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 06 Jun 2025 07:00:00 +0000

Type Values Removed Values Added
Description The Paged Gallery plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'gallery' shortcode in all versions up to, and including, 0.7 due to insufficient input sanitization and output escaping on user supplied attributes. 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.
Title Paged Gallery <= 0.7 - Authenticated (Contributor+) Stored Cross-Site Scripting
Weaknesses CWE-80
References
Metrics cvssV3_1

{'score': 6.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-04-08T17:34:47.118Z

Reserved: 2025-06-04T14:00:17.495Z

Link: CVE-2025-5686

cve-icon Vulnrichment

Updated: 2025-06-06T15:42:02.774Z

cve-icon NVD

Status : Deferred

Published: 2025-06-06T07:15:30.070

Modified: 2026-04-15T00:35:42.020

Link: CVE-2025-5686

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-20T22:45:20Z

Weaknesses