Vulnerability in MetaSlider Gallery – Image Gallery, Lightbox Galleries, Modal Windows — CVE-2026-137137
What to do now
Update MetaSlider Gallery – Image Gallery, Lightbox Galleries, Modal Windows to 2.39.1 or later.
Affected versions
- Everything up to and including 2.39.0
Affected: MetaSlider Gallery – Image Gallery, Lightbox Galleries, Modal Windows (plugin, ml-slider-lightbox)
What the vulnerability is
The MetaSlider Gallery – Image Gallery, Lightbox Galleries, Video Galleries plugin for WordPress is vulnerable to Stored DOM-Based Cross-Site Scripting via the 'comment' parameter in all versions up to, and including, 2.39.0 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. The exploit path is active on a stock install because the 'Override Link to Image File' feature is enabled by default; a first comment from a new email address requires administrator approval, but every subsequent comment from the same email is auto-published, making the injection immediately live without further interaction beyond a victim clicking the rigged image link. Successful exploitation additionally requires an action by an administrator — the attacker cannot trigger the vulnerability on their own.
Sources
- https://plugins.trac.wordpress.org/browser/ml-slider-lightbox/tags/2.39.0/assets/js/lightgallery.min.js#L8
- https://plugins.trac.wordpress.org/browser/ml-slider-lightbox/tags/2.39.0/assets/js/ml-lightgallery-init.js#L2490
- https://plugins.trac.wordpress.org/browser/ml-slider-lightbox/tags/2.39.0/assets/js/ml-lightgallery-init.js#L845
- https://plugins.trac.wordpress.org/browser/ml-slider-lightbox/tags/2.39.0/class-ml-slider-lightbox.php#L639
- https://plugins.trac.wordpress.org/changeset/3842986
- https://plugins.trac.wordpress.org/changeset?reponame=&new=3842986%40ml-slider-lightbox%2Ftags%2F2.39.1&old=3812391%40ml-slider-lightbox%2Ftags%2F2.39.0