CVE-2021-24357 FooGallery < 2.0.35 - Authenticated Stored Cross-Site Scripting
Authenticated attackers can inject malicious scripts via the Custom CSS field in FooGallery, leading to stored XSS attacks against site visitors.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2021-24357?
CVE-2021-24357 is a medium-severity cross-site scripting vulnerability in FooPlugins Best Image Gallery & Responsive Photo Gallery – FooGallery, published on 14 Jun 2021. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
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 in the page where the gallery is embed, leading to a stored Cross-Site Scripting issue.
Weakness: CWE-79
Which versions are affected by CVE-2021-24357?
It affects 1 product.
Products include Fooplugins Foogallery.
How do I fix CVE-2021-24357?
No fix has been published for CVE-2021-24357 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2021-24357 being exploited?
There is no known exploitation of CVE-2021-24357 in the wild and no public exploit code.
Other vulnerabilities in FooPlugins Best Image Gallery & Responsive Photo Gallery – FooGallery
- CVE-2023-6947 Best WordPress Gallery Plugin – FooGallery <= 2.4.16 - Authenticated (Contributor+) Directory Traversal
- CVE-2023-44244 WordPress FooGallery Plugin <= 2.2.44 is vulnerable to Cross Site Scripting (XSS)
- CVE-2023-29439 WordPress FooGallery Plugin <= 2.2.35 is vulnerable to Cross Site Scripting (XSS)
- CVE-2025-6068 Cross-site scripting in Gallery by FooGallery
- CVE-2024-12119 Cross-site scripting in Gallery by FooGallery
Sources
Also known as GHSA-2q7g-6q23-mgp7.