CVE-2024-35240: Umbraco.Commerce Remote Code Execution Vulnerability
MODERATECVE-2024-35240 is a MODERATE (CVSS 5.4) remote code execution vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Umbraco.Commerce libraries in the NuGet ecosystem. The issue involves umbraco commerce vulnerable to stored cross-site scripting on print functionality. Remediation is available by upgrading affected packages to version 12.1.4, 10.0.5.
CVE-2024-35240 at a Glance
Security Impact
CVSS: 5.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N).
How to Fix CVE-2024-35240
To remediate this vulnerability, upgrade all affected Umbraco.Commerce dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade Umbraco.Commerce to 12.1.4
Upgrade Umbraco.Commerce to 10.0.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for Umbraco.Commerce
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-35240, inspect your project dependencies for Umbraco.Commerce:
inspect dependencies for Umbraco.Commerce
Analyze the terminal output to locate any version of Umbraco.Commerce in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 12.1.4), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Umbraco.Commerce, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-35240 Affected Umbraco.Commerce Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
Umbraco.Commerce
|
NuGet |
≥ 12.0.0
< 12.1.4
|
12.1.4
|
|
Umbraco.Commerce
|
NuGet |
< 10.0.5
|
10.0.5
|
References
Frequently Asked Questions
What is CVE-2024-35240?
Which Umbraco.Commerce versions are affected?
What version fixes CVE-2024-35240?
Is Umbraco.Commerce affected?
What is the CVSS score of CVE-2024-35240?
What CWE is associated with CVE-2024-35240?
How can I check NuGet dependencies for CVE-2024-35240?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rpj9-xjwm-wr6w",
"modified" : "2024-06-03T18:29:26Z",
"published" : "2024-05-28T21:18:04Z",
"aliases" : [ "CVE-2024-35240" ],
"summary" : "Umbraco Commerce vulnerable to Stored Cross-site Scripting on Print Functionality",
"details" : "### Impact\nStored Cross-site scripting (XSS) enable attackers to inject malicious code into Print Functionality\n\n### Patches\n12.1.4, 10.0.5\n\n\n### References\nhttps://docs.umbraco.com/umbraco-commerce/release-notes#id-13.0.0-december-13th-2023\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "NuGet",
"name" : "Umbraco.Commerce"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "12.0.0"
}, {
"fixed" : "12.1.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Umbraco.Commerce"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "10.0.5"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/umbraco/Umbraco.Commerce.Issues/security/advisories/GHSA-rpj9-xjwm-wr6w"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-35240"
}, {
"type" : "WEB",
"url" : "https://docs.umbraco.com/umbraco-commerce/release-notes#id-13.0.0-december-13th-2023"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/umbraco/Umbraco.Commerce.Issues"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-28T21:18:04Z",
"nvd_published_at" : "2024-05-28T21:16:31Z"
}
}