CVE-2024-4627 Rank Math SEO < 1.0.219 - Authenticated Stored XSS

Medium 5.5 Published Updated

Authenticated users can inject malicious scripts via settings, leading to stored XSS and potential account takeover in WordPress sites using Rank Math SEO.

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-2024-4627?

CVE-2024-4627 is a medium-severity cross-site scripting vulnerability in Unknown Rank Math SEO , published on 2 Jul 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

The Rank Math SEO WordPress plugin before 1.0.219 does not sanitise and escape some of its settings, which could allow users with access to the General Settings (by default admin, however such access can be given to lower roles via the Role Manager feature of the Rank Math SEO WordPress plugin before 1.0.219) to perform Stored Cross-Site Scripting attacks even when the unfiltered_html capability is disallowed (for example in multisite setup).

Weakness: CWE-79

Which versions are affected by CVE-2024-4627?

It affects 1 product.

Products include Rankmath Seo.

How do I fix CVE-2024-4627?

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

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

Sources

Also known as GHSA-c2jm-v3mf-w53g.

Is CVE-2024-4627 in your software?

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

Check your SBOMs for free