CVE-2024-35218 Umbraco CMS Vulnerable to Stored XSS on Content Page Through Markdown Editor Preview Pane

Medium 4.2 Published Updated

Attackers with backoffice access can inject malicious scripts via the Markdown editor preview pane, leading to stored XSS attacks on the website.

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
Available

What is CVE-2024-35218?

CVE-2024-35218 is a medium-severity cross-site scripting vulnerability in Umbraco Umbraco Cms, published on 21 May 2024. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

Official description

Umbraco CMS is an ASP.NET CMS used by more than 730.000 websites. Stored Cross-site scripting (XSS) enable attackers that have access to backoffice to bring malicious content into a website or application. This vulnerability has been patched in version(s) 8.18.13, 10.8.4, 12.3.7, 13.1.1 by implementing IHtmlSanitizer.

Weakness: CWE-79

Which versions are affected by CVE-2024-35218?

8 open source packages ship an affected version, including UmbracoCms.Core. It affects 1 product.

PackageAffectedFixed in
UmbracoCms.Core NuGetFrom 10.0.010.8.4
UmbracoCms.Core NuGetFrom 10.0.010.8.4
UmbracoCms.Core NuGetFrom 12.0.012.3.7
UmbracoCms.Core NuGetFrom 12.0.012.3.7
UmbracoCms.Core NuGetFrom 13.0.013.1.1
UmbracoCms.Core NuGetFrom 13.0.013.1.1
2 more packages
UmbracoCms.Core NuGetFrom 8.0.08.18.13
UmbracoCms.Core NuGetFrom 8.0.08.18.13

Products include Umbraco Umbraco Cms.

How do I fix CVE-2024-35218?

Upgrade UmbracoCms.Core to a fixed version for your release line: 10.8.4, 12.3.7, 13.1.1 or 8.18.13.

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-35218 being exploited?

There is no known exploitation of CVE-2024-35218 in the wild and no public exploit code.

All Umbraco Umbraco Cms vulnerabilities

Sources

Also known as GHSA-gvpc-3pj6-4m9w.

Is CVE-2024-35218 in your software?

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

Check your SBOMs for free