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-10165 Overview
CVE-2025-10165 is a Stored Cross-Site Scripting (XSS) vulnerability [CWE-79] in the AP Background plugin for WordPress. The flaw affects all versions up to and including 3.8.2. It exists in the plugin's adv_parallax_back shortcode, which fails to properly sanitize user-supplied attributes and escape output. Authenticated users with contributor-level access or higher can inject arbitrary JavaScript into pages. The injected scripts execute in the browser of any visitor who loads the affected page.
Critical Impact
Authenticated contributors can inject persistent JavaScript that executes against site visitors and administrators, enabling session theft, forced administrative actions, and content manipulation.
Affected Products
- AP Background plugin for WordPress, all versions through 3.8.2
- WordPress sites allowing contributor-level or higher registration
- Any site rendering pages containing the adv_parallax_back shortcode
Discovery Timeline
- 2025-10-03 - CVE-2025-10165 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-10165
Vulnerability Analysis
The vulnerability resides in the plugin's shortcode handler defined in includes/shortCodeClass.php. The adv_parallax_back shortcode accepts user-controlled attributes and reflects them into the rendered page markup. The plugin does not apply WordPress sanitization functions such as esc_attr() or wp_kses() to these attributes before output.
Because shortcodes are processed server-side during page rendering, injected payloads persist in post content. Any visitor loading the page triggers script execution in the browser context of the site's origin. Attackers require only contributor privileges, a role commonly available on multi-author WordPress deployments.
Successful exploitation can lead to session hijacking against authenticated administrators, forced actions via administrative APIs, credential harvesting through injected forms, and redirection to attacker-controlled infrastructure. The scope change indicated in the vulnerability data reflects that injected scripts execute against users beyond the attacker's own session.
Root Cause
The root cause is insufficient input sanitization and output escaping on shortcode attributes handled by the adv_parallax_back shortcode callback. Attribute values are passed into HTML output without escaping, allowing arbitrary HTML and JavaScript to be embedded in the page.
Attack Vector
An authenticated user with contributor role or above authors or edits a post that includes the vulnerable shortcode with a crafted attribute value containing JavaScript. When the post is previewed, published, or viewed by another user, the payload executes in that user's browser. Refer to the Wordfence Vulnerability Report and the WordPress Plugin Code Review for technical details of the unsanitized attribute handling.
Detection Methods for CVE-2025-10165
Indicators of Compromise
- Post or page content containing [adv_parallax_back] shortcodes with attribute values that include <script>, javascript:, on*= event handlers, or encoded equivalents
- New or modified posts authored by contributor-level accounts referencing the shortcode
- Unexpected outbound requests from browsers loading site pages to unknown domains
- Administrator sessions issuing REST API calls immediately after visiting a contributor-authored page
Detection Strategies
- Query the WordPress wp_posts table for shortcode attributes containing HTML tags or JavaScript keywords
- Compare deployed plugin version against 3.8.2 and flag any installation at or below this version
- Review contributor and author account activity for recent post creation or edits involving parallax shortcodes
- Enable Content Security Policy (CSP) reporting to capture inline script violations originating from post content
Monitoring Recommendations
- Monitor WordPress audit logs for post edits and shortcode changes performed by non-administrator roles
- Alert on newly registered contributor accounts followed by rapid post creation activity
- Track browser-side JavaScript errors and CSP violation reports on public pages
- Log and review AJAX and REST API calls originating from authenticated administrator sessions after page loads
How to Mitigate CVE-2025-10165
Immediate Actions Required
- Deactivate the AP Background plugin on affected WordPress sites until a patched version is confirmed installed
- Audit all posts and pages containing the adv_parallax_back shortcode and remove suspicious attribute values
- Review and disable or downgrade untrusted contributor and author accounts
- Force password resets and invalidate active sessions for administrator accounts that viewed contributor content
Patch Information
At the time of writing, no vendor-confirmed patched release beyond 3.8.2 is referenced in the NVD entry. Monitor the AP Background Plugin page and the Wordfence Vulnerability Report for an updated release addressing the sanitization gap.
Workarounds
- Restrict post publication and shortcode use to trusted editor or administrator roles using a capability management plugin
- Deploy a web application firewall rule that blocks shortcode attributes containing <, >, or javascript: sequences
- Apply a strict Content Security Policy that disallows inline scripts and unknown script sources
- Remove or replace the adv_parallax_back shortcode in existing content until a fixed plugin version is available
# Example: identify posts referencing the vulnerable shortcode
wp db query "SELECT ID, post_author, post_status FROM wp_posts \
WHERE post_content LIKE '%[adv_parallax_back%';"
# Example: deactivate the plugin via WP-CLI
wp plugin deactivate ap-background
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

