---
id: "CVE-2026-120687"
page: "https://infrastack.ai/live/CVE-2026-120687"
kind: "vulnerability"
aliases: ["CVE-2026-120687"]
title: "FooBox WordPress plugin: stored XSS via image alt attribute"
severity: "high"
cvss: 7.2
epss: null
exploited: false
status: "open"
category: "other"
products: [{"name": "foobox-image-lightbox", "fixed": ["2.8.8"], "affected": "<= 2.8.7", "ecosystem": "wordpress"}]
ecosystems: []
tags: ["bbpress", "foobox", "other", "wordpress", "wordpress-plugin", "xss"]
not_affected_if: ["newer-version", "plugin-not-installed"]
published_at: "2026-11-14T16:17:03+00:00"
first_seen_at: "2026-11-14T16:30:58+00:00"
updated_at: "2026-11-14T16:32:39+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-120687", "first_seen_at": "2026-11-14T16:30:58+00:00"}, {"source": "analyst", "url": "https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/foobox-image-lightbox/lightbox-modal-popup-wordpress-plugin-287-unauthenticated-stored-dom-based-cross-site-scripting-via-image-alt-attribute-in-wp-caption-containers", "first_seen_at": "2026-11-14T16:32:39+00:00", "cites": ["https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/foobox-image-lightbox/lightbox-modal-popup-wordpress-plugin-287-unauthenticated-stored-dom-based-cross-site-scripting-via-image-alt-attribute-in-wp-caption-containers", "https://patchstack.com/database/wordpress/plugin/foobox-image-lightbox/vulnerability/wordpress-lightbox-modal-popup-wordpress-plugin-foobox-plugin-2-8-7-unauthenticated-stored-dom-based-cross-site-scripting-vulnerability", "https://fooplugins.com/changelog/foobox/", "https://wpsec.com/vuln/WPSEC-2026-2742/"]}]
exploit_sources: []
---

# FooBox WordPress plugin: stored XSS via image alt attribute

Link for people: https://infrastack.ai/live/CVE-2026-120687 (this .md is for agents)

The FooBox Lightbox & Modal Popup WordPress plugin, up to and including 2.8.7, does not sanitize or escape an image alt attribute inside the .wp-caption container. An attacker can store a script that runs in the browser of any visitor who opens the injected page.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- wordpress:foobox-image-lightbox affected <= 2.8.7 fixed 2.8.8

## How to check

Run: wp plugin get foobox-image-lightbox --field=version (or see Plugins in wp-admin). Versions <= 2.8.7 are affected; 2.8.8+ is fixed. Sites that allow open registration, have Subscriber/Contributor users, or run a bbPress public forum are the most exposed.

## Fix

Update FooBox (foobox-image-lightbox) to 2.8.8 or later; released 7 Nov 2026 per the vendor changelog (Patchstack lists 2.8.8 as the patched version).

## Timeline

- 2026-11-14T16:30:58+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-120687
- 2026-11-14T16:32:39+00:00 analyst https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/foobox-image-lightbox/lightbox-modal-popup-wordpress-plugin-287-unauthenticated-stored-dom-based-cross-site-scripting-via-image-alt-attribute-in-wp-caption-containers — Fixed in 2.8.8 (vendor changelog 7 Nov 2026; Patchstack agrees). Privilege conflict: Wordfence title and CVSS say unauthenticated (PR:N), but its description needs Contributor+, or Subscriber with bbPress. WPSec lists Contributor+ for the same fix. No exploitation or PoC found. No check written: it needs a version read, which matching already does.

## Documents

- [advisory] Wordfence: FooBox <= 2.8.7 stored DOM XSS https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/foobox-image-lightbox/lightbox-modal-popup-wordpress-plugin-287-unauthenticated-stored-dom-based-cross-site-scripting-via-image-alt-attribute-in-wp-caption-containers
- [advisory] Patchstack: FooBox <= 2.8.7 XSS, patched 2.8.8 https://patchstack.com/database/wordpress/plugin/foobox-image-lightbox/vulnerability/wordpress-lightbox-modal-popup-wordpress-plugin-foobox-plugin-2-8-7-unauthenticated-stored-dom-based-cross-site-scripting-vulnerability
- [fix] FooBox Changelog - FooPlugins https://fooplugins.com/changelog/foobox/
- [mentions] WPSec: FooBox <= 2.8.7 Contributor+ stored DOM XSS https://wpsec.com/vuln/WPSEC-2026-2742/

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
