CVE-2026-120687: Lightbox & Modal Popup WordPress Plugin DOM-based cross-site scripting (XSS) vulnerability
published 2026-11-14 · updated 2026-11-16
- Affected versions
- 2.8.7 and older
- Fixed in
- 2.8.8 *
- Latest version
- 2.8.8
- Active installs
- 100,000+
- Type
- DOM-based cross-site scripting (XSS)
* The source does not name a fixed version; this is the first wordpress.org release after the last affected version.
What to do now
- Update Lightbox & Modal Popup WordPress Plugin to 2.8.8 or newer: Dashboard → Updates, or Plugins → “update now”.
- If you cannot update right away, deactivate it until you can.
- Turn on auto-updates for it: Plugins → “Enable auto-updates” on its row.
- Not sure which version you run? Check your version against every known Lightbox & Modal Popup WordPress Plugin issue.
With WP-CLI:
wp plugin get foobox-image-lightbox --field=version. - If you ran an affected version and something looks off (new admin users, spam pages, redirects), run the free scan below.
Is your site exposed to CVE-2026-120687?
- Are you on an affected version? Compare your Lightbox & Modal Popup WordPress Plugin version with every known issue on record. Check my version
- Has your site already been hit? The free scan looks for signs of a hack from the outside. It cannot see plugin versions or test for this bug.
- Already hacked? Flat $499 for a standard cleanup. Nothing is charged until we have looked at your site and confirmed the job. See how cleanup works
What an attacker needs
- Access: None. No account or login is needed.
Technical details
Weakness
DOM-based cross-site scripting (XSS) CWE-79
JavaScript on the page copies attacker-controlled data, often from the URL, into the page in a way the browser runs as script.
The script acts in the session of whoever opens the crafted page.
General description of this issue type. The advisory below covers this bug.
CVSS 3.1 breakdown
- Attack vector
- Network (remote)
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Changed
- Confidentiality impact
- Low
- Integrity impact
- Low
- Availability impact
- None
CVSS vector (scored by Wordfence): CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
The advisory
The Lightbox & Modal Popup WordPress Plugin – FooBox plugin for WordPress is vulnerable to Stored DOM-Based Cross-Site Scripting via the 'img alt attribute inside .wp-caption container' parameter in all versions up to, and including, 2.8.7 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. This is exploitable by Subscriber-level users when bbPress is installed, as its bbp_filter_kses filter chain permits img and pre tags while preserving numeric character references inside attribute values, allowing encoded payloads to bypass save-time sanitization and reach the vulnerable sink fully intact. Exploitation by attackers with subscriber-level access and above requires that bbPress 2.6.20 is installed, a public forum exists, and either the first topic has already been approved or subsequent topics clear moderation. On a default installation, where that is not configured, the vulnerability requires attackers with contributor-level access and above.
References
- NVD CVE-2026-120687 nvd.nist.gov
- Wordfence advisory www.wordfence.com
- Code change (fix) plugins.trac.wordpress.org
- Plugin source plugins.trac.wordpress.org
How Laskyr cleans up a site hacked through Lightbox & Modal Popup WordPress Plugin
We confirm the job by email before any payment, remove the infection, harden the site and report how they got in. A standard cleanup is $499 with a 30-day reinfection guarantee. Bigger jobs get a written estimate first, and nothing more is charged unless you approve it. Full details.
Related
Ran an affected version? Run the free scan for signs of a hack.
Where this data comes from
- CVE record, score and references: NIST National Vulnerability Database (NVD), checked 2026-11-29. This product uses data from the NVD API but is not endorsed or certified by the NVD.
- Versions and install counts: wordpress.org/plugins/foobox-image-lightbox (Plugins API), fetched 2026-11-29.
- Everything outside the quoted description is our plain-English reading of the record and the plugin's release history. The CWE is the standard one for this issue type. Spot an error? Email Daniel.