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

- Priority: **Routine**
- Reason: Not severe (CVSS 6.4, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-07-11 · Modified: 2026-04-08
- Record: https://cvemate.com/vulnerability/CVE-2025-6068 · JSON: https://cvemate.com/vulnerability/CVE-2025-6068/json

## Description

```text
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.
```

## Signals

- CVSS: 6.4 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
- EPSS: 0.253%, percentile 17.926%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- fooplugins foogallery: \< 2.4.32
- fooplugins gallery by foogallery: ≤ 2.4.31
- wordpress foogallery: ≤ 2.4.31 (fixed in 2.4.32)

## References

- <https://www.wordfence.com/threat-intel/vulnerabilities/id/a6be4aaa-f8a1-42d6-95c1-062c5ca51004?source=cve>
- <https://plugins.trac.wordpress.org/browser/foogallery/trunk/extensions/default-templates/shared/js/foogallery.min.js>
- <https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3322251%40foogallery&new=3322251%40foogallery&sfp_email=&sfph_mail=>
- <https://www.wordfence.com/threat-intel/vulnerabilities/id/a6be4aaa-f8a1-42d6-95c1-062c5ca51004>

---

Data as of 2026-12-05T13:27:30.381Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
