CVE-2024-35240 Stored Cross-site Scripting on Print Functionality in Umbraco Commerce

Medium 5.4 Published Updated

Attackers can inject malicious scripts into the Print Functionality of Umbraco Commerce, potentially executing code in victim browsers.

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

What is CVE-2024-35240?

CVE-2024-35240 is a medium-severity cross-site scripting vulnerability in Umbraco.Commerce.Issues, published on 28 May 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Umbraco Commerce is an open source dotnet ecommerce solution. In affected versions there exists a stored Cross-site scripting (XSS) issue which would enable attackers to inject malicious code into Print Functionality. This issue has been addressed in versions 12.1.4, and 10.0.5. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Weakness: CWE-79

Which versions are affected by CVE-2024-35240?

4 open source packages ship an affected version, including Umbraco.Commerce.

PackageAffectedFixed in
Umbraco.Commerce NuGetAll versions10.0.5
Umbraco.Commerce NuGetAll versions10.0.5
Umbraco.Commerce NuGetFrom 12.0.012.1.4
Umbraco.Commerce NuGetFrom 12.0.012.1.4

How do I fix CVE-2024-35240?

Upgrade Umbraco.Commerce to a fixed version for your release line: 10.0.5 or 12.1.4.

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

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

Sources

Also known as GHSA-rpj9-xjwm-wr6w.

Is CVE-2024-35240 in your software?

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

Check your SBOMs for free