Medium severity · published Jul 3, 2025
CVE-2025-2540
Multiple Plugins <= (Various Versions) - Authenticated (Contributor+) Stored DOM-Based Cross-Site Scripting via prettyPhoto JavaScript Library
6.4
CVSS
0.3%
EPSS
No
On KEV
Description
Multiple plugins for WordPress are vulnerable to Stored Cross-Site Scripting via the plugin's bundled prettyPhoto library (version 3.1.6) in various versions 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 whenever a user accesses an injected page.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
Low
Integrity
Low
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 26% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
AG
Awesome Gallery · raihancse
through 1.0 · source: vendor
AW
Awesome Wp Image Gallery · nayon46
through 1.0 · source: vendor
E3
Easy 3D Viewer · fuzzoid
through 1.8.6.6 · source: vendor
EI
Easy Image Gallery · devrix
through 1.5.2 · source: vendor
WV
WP Video Lightbox · wptipsntricks
through 1.9.11 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-2540
CVE.org
https://www.cve.org/CVERecord?id=CVE-2025-2540
plugins.trac.wordpress.org
https://plugins.trac.wordpress.org/browser/awesome-gallery/trunk/js/jquery.prettyPhoto.js
plugins.trac.wordpress.org
https://plugins.trac.wordpress.org/browser/awesome-wp-image-gallery/trunk/js/jquery.prettyPhoto.js
plugins.trac.wordpress.org
https://plugins.trac.wordpress.org/browser/easy-image-gallery/trunk/includes/lib/prettyphoto/jquery.prettyPhoto.js
plugins.trac.wordpress.org
https://plugins.trac.wordpress.org/browser/woo-3d-viewer/trunk/includes/ext/prettyPhoto/js/jquery.prettyPhoto.init.min.js
plugins.trac.wordpress.org
https://plugins.trac.wordpress.org/browser/wp-video-lightbox/trunk/js/jquery.prettyPhoto.js
plugins.trac.wordpress.org
https://plugins.trac.wordpress.org/changeset/3266651/wp-video-lightbox
More from Easy Image Gallery
6.4
CVE-2026-4766
Easy Image Gallery <= 1.5.3 - Authenticated (Contributor+) Stored Cross-Site Scripting via Gallery Shortcode Post Meta
