Vulnerabilities in pkg:nuget/Umbraco.Commerce

PACKAGE
Advisory Identifier: GHSA-rpj9-xjwm-wr6w
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:nuget/Umbraco.Commerce

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:nuget/Umbraco.Commerce. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-rpj9-xjwm-wr6w CVE-2024-35240 MODERATE Umbraco Commerce vulnerable to Stored Cross-site Scripting on Print Functionality

CVE-2024-35240 at a Glance

CVE Identifier CVE-2024-35240
GHSA Identifier GHSA-rpj9-xjwm-wr6w
Severity MODERATE
CVSS v3.1 Base Score 5.4
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Umbraco.Commerce
Package Ecosystem NuGet
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (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.

Umbraco.Commerce fixed: 12.1.4
Upgrade Umbraco.Commerce to 12.1.4
Umbraco.Commerce fixed: 10.0.5
Upgrade Umbraco.Commerce to 10.0.5
Verify Direct and Transitive Dependencies

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

### Impact Stored Cross-site scripting (XSS) enable attackers to inject malicious code into Print Functionality ### Patches 12.1.4, 10.0.5 ### References https://docs.umbraco.com/umbraco-commerce/release-notes#id-13.0.0-december-13th-2023

CVE-2024-35240 Affected Umbraco.Commerce Versions

2 component(s)
Fixed Versions:
12.1.410.0.5
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?
CVE-2024-35240 is a security vulnerability in Umbraco.Commerce involving Umbraco Commerce vulnerable to Stored Cross-site Scripting on Print Functionality under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Umbraco.Commerce versions are affected?
Affected versions include releases prior to 12.1.4, 10.0.5 across affected packages: Umbraco.Commerce.
What version fixes CVE-2024-35240?
Upgrading to 12.1.4, 10.0.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is Umbraco.Commerce affected?
Yes, Umbraco.Commerce is affected in releases prior to 12.1.4, 10.0.5. Upgrade your dependency to 12.1.4, 10.0.5 or later.
What is the CVSS score of CVE-2024-35240?
CVE-2024-35240 has a CVSS v3.1 base score of 5.4 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2024-35240?
CVE-2024-35240 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (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.).
How can I check NuGet dependencies for CVE-2024-35240?
Run the dependency tree command: 'inspect dependencies for Umbraco.Commerce'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}