Vulnerabilities in pkg:nuget/UmbracoCms.Core

PACKAGE
Advisory Identifier: GHSA-gvpc-3pj6-4m9w
Advisory Summary

CVE-2024-35218 is a MODERATE (CVSS 4.2) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting UmbracoCms.Core libraries in the NuGet ecosystem. The issue involves umbraco cms vulnerable to stored xss on content page through markdown editor preview pane. Remediation is available by upgrading affected packages to version 8.18.13, 10.8.4, 12.3.7, 13.1.1.

3 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:nuget/UmbracoCms.Core

3 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-gvpc-3pj6-4m9w CVE-2024-35218 MODERATE Umbraco CMS Vulnerable to Stored XSS on Content Page Through Markdown Editor Preview Pane
GHSA-j74q-mv2c-rxmp CVE-2024-34071 MODERATE Umbraco CMS Open Redirect Bypass Protection
GHSA-95qr-67rx-9pgh CVE-2020-5809 MODERATE Umbraco CMS vulnerable to stored XSS

CVE-2024-35218 at a Glance

CVE Identifier CVE-2024-35218
GHSA Identifier GHSA-gvpc-3pj6-4m9w
Severity MODERATE
CVSS v3.1 Base Score 4.2
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product UmbracoCms.Core
Package Ecosystem NuGet
Published Date
Last Updated

Security Impact

CVSS: 4.2

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required High (PR:H)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2024-35218

To remediate this vulnerability, upgrade all affected UmbracoCms.Core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

UmbracoCms.Core fixed: 8.18.13
Upgrade UmbracoCms.Core to 8.18.13
UmbracoCms.Core fixed: 10.8.4
Upgrade UmbracoCms.Core to 10.8.4
UmbracoCms.Core fixed: 12.3.7
Upgrade UmbracoCms.Core to 12.3.7
UmbracoCms.Core fixed: 13.1.1
Upgrade UmbracoCms.Core to 13.1.1
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 UmbracoCms.Core

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-35218, inspect your project dependencies for UmbracoCms.Core:

inspect dependencies for UmbracoCms.Core

Analyze the terminal output to locate any version of UmbracoCms.Core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 8.18.13), 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 UmbracoCms.Core, 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 that have access to backoffice to bring malicious content into a website or application. ### Affected versions Umbraco CMS >= 8.00 ### Patches This is fixed in 8.18.13, 10.8.4, 12.3.7, 13.1.1 by implementing IHtmlSanitizer

CVE-2024-35218 Affected UmbracoCms.Core Versions

4 component(s)
Fixed Versions:
8.18.1310.8.412.3.713.1.1
Product / Package Ecosystem Affected Versions Fixed Version
UmbracoCms.Core
NuGet
≥ 8.0.0
< 8.18.13
8.18.13
UmbracoCms.Core
NuGet
≥ 10.0.0
< 10.8.4
10.8.4
UmbracoCms.Core
NuGet
≥ 12.0.0
< 12.3.7
12.3.7
UmbracoCms.Core
NuGet
≥ 13.0.0
< 13.1.1
13.1.1

References

Frequently Asked Questions

What is CVE-2024-35218?
CVE-2024-35218 is a security vulnerability in UmbracoCms.Core involving Umbraco CMS Vulnerable to Stored XSS on Content Page Through Markdown Editor Preview Pane under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which UmbracoCms.Core versions are affected?
Affected versions include releases prior to 8.18.13, 10.8.4, 12.3.7, 13.1.1 across affected packages: UmbracoCms.Core.
What version fixes CVE-2024-35218?
Upgrading to 8.18.13, 10.8.4, 12.3.7, 13.1.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is UmbracoCms.Core affected?
Yes, UmbracoCms.Core is affected in releases prior to 8.18.13, 10.8.4, 12.3.7, 13.1.1. Upgrade your dependency to 8.18.13, 10.8.4, 12.3.7, 13.1.1 or later.
What is the CVSS score of CVE-2024-35218?
CVE-2024-35218 has a CVSS v3.1 base score of 4.2 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2024-35218?
CVE-2024-35218 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-35218?
Run the dependency tree command: 'inspect dependencies for UmbracoCms.Core'. 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-gvpc-3pj6-4m9w",
  "modified" : "2025-02-12T18:33:38Z",
  "published" : "2024-05-21T14:47:24Z",
  "aliases" : [ "CVE-2024-35218" ],
  "summary" : "Umbraco CMS Vulnerable to Stored XSS on Content Page Through Markdown Editor Preview Pane",
  "details" : "### Impact\nStored Cross-site scripting (XSS) enable attackers that have access to backoffice to bring malicious content into a website or application.\n\n### Affected versions\nUmbraco CMS >= 8.00\n\n### Patches\nThis is fixed in 8.18.13, 10.8.4, 12.3.7, 13.1.1 by implementing IHtmlSanitizer",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "UmbracoCms.Core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.0.0"
      }, {
        "fixed" : "8.18.13"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "UmbracoCms.Core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "10.0.0"
      }, {
        "fixed" : "10.8.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "UmbracoCms.Core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "12.0.0"
      }, {
        "fixed" : "12.3.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "UmbracoCms.Core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "13.0.0"
      }, {
        "fixed" : "13.1.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/umbraco/Umbraco-CMS/security/advisories/GHSA-gvpc-3pj6-4m9w"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-35218"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/umbraco/Umbraco-CMS/commit/1b712fe6ec52aa4e71b3acf63e393c8e6ab85385"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/umbraco/Umbraco-CMS/commit/a2684069b1e9976444f60b4b37a80be05b87f6b6"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/umbraco/Umbraco-CMS/commit/cbf9f9bcd199d7ca0412be3071d275556f10b7ba"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/umbraco/Umbraco-CMS/commit/d090176272d07500dac0daee7c598aa8bb321050"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/umbraco/Umbraco-CMS"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-21T14:47:24Z",
    "nvd_published_at" : "2024-05-21T14:15:12Z"
  }
}