CVE-2025-6068

FooGallery – Responsive Photo Gallery, Image Viewer, Justified, Masonry & Carousel <= 2.4.31 - Authenticated (Contributor+) DOM-Based Stored Cross-Site Scripting

Published Jul 11, 2025 CVSS 3.1 · 6.4 Medium EPSS < 1% KEV · Not listed
Description
The FooGallery – Responsive Photo Gallery, Image Viewer, Justified, Masonry & Carousel plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the `data-caption-title` & `data-caption-description` HTML attributes in all versions up to, and including, 2.4.31 due to insufficient input sanitization and output escaping. 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.

Analysis

AI-generated

Technical impact

The Foogallery plugin contains a stored cross‑site scripting vulnerability that allows authenticated contributors to inject arbitrary web scripts through the `data-caption-title` and `data-caption-description` attributes. The input is insufficiently sanitized or escaped, so the malicious script will execute in any visitor’s browser when the gallery page containing the injected content is loaded, resulting in client‑side code execution on site visitors.

Affected Systems

The vulnerability affects WordPress installations running Foogallery plugin versions 2.4.31 and earlier under the vendor Fooplugins: Gallery by Foogallery.

Risk and Exploitability

The CVSS score of 6.4 classifies the flaw as moderate, while an EPSS score of less than 1 % indicates a low immediate exploitation probability. The flaw is not listed in the CISA KEV catalog. The vulnerability requires authenticated Contributor or higher access; if credentials are obtained, the injected script will run for all users who view the vulnerable gallery page.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Foogallery to a version newer than 2.4.31.
  • Temporarily reduce Contributor or higher role privileges until the plugin is updated, or review role permissions to minimize exposure.
  • If a patch is not yet available, restrict access to the gallery editor to trusted users only.

Generated by OpenCVE AI on April 21, 2026 at 19:44 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-21116 The FooGallery – Responsive Photo Gallery, Image Viewer, Justified, Masonry & Carousel plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the `data-caption-title` & `data-caption-description` HTML attributes in all versions up to, and including, 2.4.31 due to insufficient input sanitization and output escaping. 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.
History
Type Values Removed Values Added
First Time appeared Fooplugins
Fooplugins foogallery
CPEs cpe:2.3:a:fooplugins:foogallery:*:*:*:*:-:wordpress:*:*
Vendors & Products Fooplugins
Fooplugins foogallery
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics epss

{'score': 0.00029}

Type Values Removed Values Added
Description The FooGallery – Responsive Photo Gallery, Image Viewer, Justified, Masonry & Carousel plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the `data-caption-title` & `data-caption-description` HTML attributes in all versions up to, and including, 2.4.31 due to insufficient input sanitization and output escaping. 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.
Title FooGallery – Responsive Photo Gallery, Image Viewer, Justified, Masonry & Carousel <= 2.4.31 - Authenticated (Contributor+) DOM-Based Stored Cross-Site Scripting
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
Wordfence
Published
Updated
Apr 8, 2026, 5:13 PM
Reserved
Jun 13, 2025, 2:00 PM
Status
Analyzed
Published
Jul 11, 2025, 8:15 AM
Modified
Jun 17, 2026, 10:01 AM