CVE-2021-24362 Photo Gallery < 1.5.75 - Stored Cross-Site Scripting via Uploaded SVG

Medium 6.1 Published Updated

An attacker with image upload permissions can inject malicious JavaScript via SVG files, leading to stored XSS execution in victim browsers.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2021-24362?

CVE-2021-24362 is a medium-severity cross-site scripting vulnerability in Unknown Photo Gallery by 10Web – Mobile-Friendly Image Gallery, published on 16 Aug 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

The Photo Gallery by 10Web – Mobile-Friendly Image Gallery WordPress plugin before 1.5.75 did not ensure that uploaded SVG files added to a gallery do not contain malicious content. As a result, users allowed to add images to gallery can upload an SVG file containing JavaScript code, which will be executed when accessing the image directly (ie in the /wp-content/uploads/photo-gallery/ folder), leading to a Cross-Site Scripting (XSS) issue

Weakness: CWE-79

Which versions are affected by CVE-2021-24362?

It affects 1 product.

Products include 10web Photo Gallery.

How do I fix CVE-2021-24362?

No fix has been published for CVE-2021-24362 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-24362 being exploited?

There is no known exploitation of CVE-2021-24362 in the wild and no public exploit code.

Sources

Also known as GHSA-pg42-7827-374h.

Is CVE-2021-24362 in your software?

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

Check your SBOMs for free