Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-58965 Overview
CVE-2025-58965 is a stored Cross-Site Scripting (XSS) vulnerability in the Agency Dominion Inc. Fusion Page Builder : Extension – Gallery (fusion-extension-gallery) WordPress plugin. The flaw stems from improper neutralization of input during web page generation [CWE-79]. It affects all plugin versions up to and including 1.7.6. An authenticated attacker with low privileges can inject malicious JavaScript that persists in the page and executes in the browsers of other users who view the affected content. The issue was published to the National Vulnerability Database (NVD) on September 22, 2025.
Critical Impact
Stored XSS enables session theft, administrative action hijacking, and persistent client-side payload delivery against WordPress site visitors and administrators.
Affected Products
- Agency Dominion Fusion Page Builder : Extension – Gallery (fusion-extension-gallery) through version 1.7.6
- WordPress installations using the vulnerable plugin
- Any site allowing contributor-level or higher authenticated access with the plugin enabled
Discovery Timeline
- 2025-09-22 - CVE-2025-58965 published to NVD
- 2026-10-11 - Last updated in NVD database
Technical Details for CVE-2025-58965
Vulnerability Analysis
The plugin accepts user-controlled input through its Gallery extension interface and renders that input into generated web pages without adequate sanitization or output encoding. An authenticated user with low-level privileges can submit crafted HTML or JavaScript payloads that the plugin stores server-side. When another user, including an administrator, views the page containing the stored payload, the browser executes the attacker-controlled script in the context of the site's origin.
Stored XSS in a WordPress page builder plugin is particularly impactful because gallery content frequently renders on front-end pages viewed by anonymous visitors and in back-end preview or edit screens viewed by privileged users. The scope change in the issued metrics reflects that the impact crosses the trust boundary from the authenticated contributor to the viewing user.
Root Cause
The root cause is missing or insufficient input neutralization in the Gallery extension's data handling path. Gallery metadata fields reach the output rendering stage without being filtered through WordPress APIs such as wp_kses_post(), esc_html(), or esc_attr(). This allows attacker-supplied markup to survive storage and be emitted as live HTML.
Attack Vector
Exploitation requires network access to the WordPress site and an authenticated account with permission to edit gallery content. The attack also requires user interaction, meaning a victim must load a page or admin screen that renders the malicious gallery entry. The attacker submits a payload containing JavaScript through a gallery field, waits for a privileged user to view the affected content, and then leverages the executed script to perform actions such as creating new administrator accounts, exfiltrating authentication cookies, or injecting backdoors into plugin or theme files.
See the Patchstack XSS Vulnerability Advisory for additional technical context.
Detection Methods for CVE-2025-58965
Indicators of Compromise
- Gallery items, captions, or metadata fields containing <script> tags, on* event handlers, or javascript: URIs
- Unexpected WordPress administrator accounts created shortly after a contributor or author user edited gallery content
- Outbound browser requests from /wp-admin/ sessions to attacker-controlled domains
- Modified theme or plugin files bearing timestamps near authenticated gallery edits
Detection Strategies
- Review the wp_posts and wp_postmeta tables for gallery-related rows containing HTML event handlers or script tags.
- Audit WordPress activity logs for low-privilege users editing or creating gallery entries, followed by administrator session activity on the same content.
- Scan rendered front-end pages for inline scripts that do not originate from theme or plugin source files.
Monitoring Recommendations
- Enable a WordPress audit logging plugin to track post and meta changes made by non-administrator roles.
- Deploy a Content Security Policy (CSP) that blocks inline script execution and alerts on violations.
- Monitor web application firewall (WAF) logs for POST requests to gallery endpoints containing script payloads or encoded JavaScript.
How to Mitigate CVE-2025-58965
Immediate Actions Required
- Identify all WordPress sites running fusion-extension-gallery version 1.7.6 or earlier and prioritize them for remediation.
- Deactivate the Fusion Page Builder Gallery extension until a patched version is installed if the plugin is not business-critical.
- Review existing gallery content for injected scripts and remove any suspicious entries.
- Rotate administrator passwords and invalidate active sessions if signs of exploitation are present.
Patch Information
At the time of NVD publication, the advisory records the vulnerable range as all versions up to and including 1.7.6. Site operators should consult the vendor and the Patchstack advisory for the latest fixed release and apply it promptly across all affected sites.
Workarounds
- Restrict gallery editing permissions to trusted administrator accounts only via a role management plugin.
- Place the WordPress site behind a WAF with rules that block XSS payloads in gallery-related parameters.
- Enforce a strict Content Security Policy that disallows inline scripts and untrusted script sources.
- Require multi-factor authentication for all accounts with content editing privileges to reduce the risk of attacker-controlled low-privilege logins.
# Example: list installed plugin version to confirm exposure
wp plugin get fusion-extension-gallery --field=version
# Example: deactivate the vulnerable plugin until patched
wp plugin deactivate fusion-extension-gallery
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

