Medium severity · published May 20, 2025
CVE-2024-5878
Multiple Plugins <= (Various Versions) - Authenticated (Contributor+) Stored DOM-Based Cross-Site Scripting via SimpleLightbox JavaScript Library
6.4
CVSS
0.4%
EPSS
No
On KEV
Description
Multiple plugins for WordPress are vulnerable to Stored Cross-Site Scripting via the plugin's bundled SimpleLightbox JavaScript library (version 2.1.5) 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.4% · higher than 32% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
PG
Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery · smub
through 3.59.4 · source: vendor
SI
Simplelightbox · aknieriem
through 2.14.4 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-5878
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-5878
plugins.trac.wordpress.org
https://plugins.trac.wordpress.org/browser/nextgen-gallery/trunk/static/Lightbox/simplelightbox/nextgen_simple_lightbox_init.js
plugins.trac.wordpress.org
https://plugins.trac.wordpress.org/browser/simplelightbox/trunk/dist/simple-lightbox.js
plugins.trac.wordpress.org
https://plugins.trac.wordpress.org/changeset/3157076/nextgen-gallery
www.wordfence.com
https://www.wordfence.com/threat-intel/vulnerabilities/id/bcbc8ce6-5eb7-4599-b844-72eb2ff3093c?source=cve
