CVE-2022-0750 Photoswipe Masonry Gallery <= 1.2.14 Stored Cross-Site Scripting

Medium 6.4 Published Updated

Authenticated attackers can inject arbitrary web scripts into galleries via insufficient parameter sanitization in the Photoswipe Masonry Gallery plugin.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2022-0750?

CVE-2022-0750 is a medium-severity cross-site scripting vulnerability in deanoakley Photoswipe Masonry Gallery, published on 23 Mar 2022. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

The Photoswipe Masonry Gallery WordPress plugin is vulnerable to Cross-Site Scripting due to insufficient escaping and sanitization of the thumbnail_width, thumbnail_height, max_image_width, and max_image_height parameters found in the ~/photoswipe-masonry.php file which allows authenticated attackers to inject arbitrary web scripts into galleries created by the plugin and on the PhotoSwipe Options page. This affects versions up to and including 1.2.14.

Weakness: CWE-79

Which versions are affected by CVE-2022-0750?

It affects 1 product.

Products include Thriveweb Photoswipe Masonry Gallery.

How do I fix CVE-2022-0750?

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

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-0750 exists.

Sources

Also known as GHSA-r2h7-crvv-2qgp.

Is CVE-2022-0750 in your software?

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

Check your SBOMs for free