CVE-2022-4142 WordPress Filter Gallery Plugin < 0.1.6 - Admin+ Stored XSS

Medium 4.8 Published Updated

Administrators can inject malicious scripts into the Filter Gallery plugin settings page via unescaped AJAX inputs, bypassing HTML filtering restrictions.

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

What is CVE-2022-4142?

CVE-2022-4142 is a medium-severity cross-site scripting vulnerability in Unknown WordPress Filter Gallery Plugin, published on 2 Jan 2023. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

Official description

The WordPress Filter Gallery Plugin WordPress plugin before 0.1.6 does not properly escape the filters passed in the ufg_gallery_filters ajax action before outputting them on the page, allowing a high privileged user such as an administrator to inject HTML or javascript to the plugin settings page, even when the unfiltered_html capability is disabled.

Which versions are affected by CVE-2022-4142?

It affects 1 product.

Products include Wordpress Filter Gallery Project Wordpress Filter Gallery.

How do I fix CVE-2022-4142?

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

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

Sources

Also known as GHSA-3vr6-r8gf-6wr6.

Is CVE-2022-4142 in your software?

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

Check your SBOMs for free