CVE-2022-50961 WordPress Plugin IP2Location Country Blocker 2.26.7 Stored XSS

Medium 5.1 Published Updated

Authenticated attackers can inject malicious JavaScript via the Frontend Settings URL field, leading to script execution when administrators view the settings page.

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-2022-50961?

CVE-2022-50961 is a medium-severity cross-site scripting vulnerability in IP2Location Country Blocker, published on 10 May 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

WordPress Plugin IP2Location Country Blocker 2.26.7 contains a stored cross-site scripting vulnerability that allows authenticated users to inject arbitrary JavaScript code through the Frontend Settings interface. Attackers can inject malicious scripts in the URL field of the Display page settings that execute when administrators or other authenticated users visit the plugin settings page.

Weakness: CWE-79

Which versions are affected by CVE-2022-50961?

How do I fix CVE-2022-50961?

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

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

Sources

Also known as GHSA-j23v-7p9x-7fcc.

Is CVE-2022-50961 in your software?

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

Check your SBOMs for free