CVE-2024-4270 SVGMagic <= 1.1 - Stored XSS via SVG Upload

Medium 5.4 Published Updated

An attacker with author privileges can upload malicious SVG files to execute stored XSS attacks on the WordPress site.

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-4270?

CVE-2024-4270 is a medium-severity cross-site scripting vulnerability in Unknown SVGMagic, published on 14 Jun 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 SVGMagic WordPress plugin through 1.1 does not sanitize SVG file contents, which enables users with at least the author role to SVG with malicious JavaScript to conduct Stored XSS attacks.

Weakness: CWE-79

Which versions are affected by CVE-2024-4270?

It affects 1 product.

Products include Andibauer Svgmagic.

How do I fix CVE-2024-4270?

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

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

Sources

Also known as GHSA-m4j9-whh9-8x9g.

Is CVE-2024-4270 in your software?

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

Check your SBOMs for free