CVE-2021-24357 FooGallery < 2.0.35 - Authenticated Stored Cross-Site Scripting

Medium 5.4 Published Updated

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.

Sources

Also known as GHSA-2q7g-6q23-mgp7.

Is CVE-2021-24357 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free