Photo Gallery, Sliders, Proofing and Themes <= 4.6.1 - Authenticated (Contributor+) Stored Cross-Site Scripting via Basic Slideshow 'data-slick' Attribute

Medium 6.4 CWE-79Fixed in 4.6.2
ID
WPSEC-2026-4390
Plugin
Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery (nextgen-gallery)
Affected
from 3.0.9 before 4.6.2
Remediation
Update to 4.6.2 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Weakness
CWE-79
Usage
Plugin Medium · Affected versions Medium among sites WPSec scans, 2026-12-03
Attack surface
Photo Gallery, Sliders, Proofing and Themes on WPSec AttackSurface
Fix released
Published

Description

The NextGEN Gallery plugin for WordPress is vulnerable to DOM-based Stored Cross-Site Scripting via the basic slideshow script in versions 3.0.9 up to, and including, 4.6.1. This is due to the script initialising the Slick slider on any element with the slideshow classes (and, in later versions, the displayed gallery's ID), including markup that is not part of the gallery. Slick reads its options from that element's data-slick attribute and builds its arrow options as HTML with jQuery. This makes it possible for authenticated attackers, with contributor-level access and above, to place an element with those classes and a crafted data-slick attribute in a post that also shows a basic slideshow and inject arbitrary web scripts that execute whenever a user visits the page.

References

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS

License: CC BY 4.0