CVE-2021-24357: In the Best Image Gallery & Responsive Photo Gallery – FooGallery WordPress plugin before 2.0.35, the Custom CSS field of each gallery is not properly sanitised or validated before being being output
medium Affects foogallery (WordPress plugin). Feed 2026.11.23.2, updated 2026-11-23; published ; advisory modified .
In the Best Image Gallery & Responsive Photo Gallery – FooGallery WordPress plugin before 2.0.35, the Custom CSS field of each gallery is not properly sanitised or validated before being being output
It is not on CISA's Known Exploited Vulnerabilities list today.
Which version fixes CVE-2021-24357?
foogallery (WordPress plugin): 2.0.35.
How do I check whether I am affected?
Run `phpwarden wordpress /path/to/wordpress`. phpwarden checks the exact version you have installed against this advisory.
Am I affected?
Find out in one command. phpwarden checks your WordPress install against this advisory and 21,000+ others, ranked by real-world exploitation (CISA KEV + EPSS). Free, offline, open data.
CVE-2023-6947highThe Best WordPress Gallery Plugin – FooGallery plugin for WordPress is vulnerable to Direcsame package: foogallery (WordPress plugin)
CVE-2019-20182mediumThe FooGallery plugin 1.8.12 for WordPress allow XSS via the post_title parameter.same package: foogallery (WordPress plugin)
CVE-2024-0604mediumThe Best WordPress Gallery Plugin – FooGallery plugin for WordPress is vulnerable to Storesame package: foogallery (WordPress plugin)
CVE-2024-2081mediumThe Best WordPress Gallery Plugin – FooGallery plugin for WordPress is vulnerable to Storesame package: foogallery (WordPress plugin)
CVE-2024-2122mediumThe Best WordPress Gallery Plugin – FooGallery plugin for WordPress is vulnerable to Storesame package: foogallery (WordPress plugin)
CVE-2023-6747mediumThe Best WordPress Gallery Plugin – FooGallery plugin for WordPress is vulnerable to Storesame package: foogallery (WordPress plugin)