CVE-2025-6068: FooGallery – Responsive Photo Gallery, Image Viewer, Justified, Masonry & Carousel <= 2.4.31 - Authenticated (Contributor+) DOM-Based Stored Cross-Site Scripting
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.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-6068?
CVE-2025-6068 has a high severity rating due to its potential for stored cross-site scripting attacks.
How do I fix CVE-2025-6068?
To fix CVE-2025-6068, update the FooGallery plugin to version 2.4.32 or later.
Who is affected by CVE-2025-6068?
CVE-2025-6068 affects all installations of the FooGallery plugin for WordPress versions up to and including 2.4.31.
What types of attacks can CVE-2025-6068 facilitate?
CVE-2025-6068 can facilitate stored cross-site scripting (XSS) attacks, allowing attackers to inject malicious scripts.
Are there any mitigations for CVE-2025-6068?
The best mitigation for CVE-2025-6068 is to ensure the FooGallery plugin is updated to the latest version.