CVE-2024-35218: UmbracoCms.Core Cross-Site Scripting Vulnerability
MODERATECVE-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.
CVE-2024-35218 at a Glance
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).
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.
Upgrade UmbracoCms.Core to 8.18.13
Upgrade UmbracoCms.Core to 10.8.4
Upgrade UmbracoCms.Core to 12.3.7
Upgrade UmbracoCms.Core to 13.1.1
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
CVE-2024-35218 Affected UmbracoCms.Core Versions
4 component(s)| 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?
Which UmbracoCms.Core versions are affected?
What version fixes CVE-2024-35218?
Is UmbracoCms.Core affected?
What is the CVSS score of CVE-2024-35218?
What CWE is associated with CVE-2024-35218?
How can I check NuGet dependencies for CVE-2024-35218?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}