CVE-2023-49279: Umbraco.CMS Cross-Site Scripting Vulnerability

LOW
Advisory Identifier: GHSA-6xmx-85x3-4cv2
CVSS 0.0
CWE-79
Published
Advisory Summary

CVE-2023-49279 is a LOW (CVSS 0.0) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Umbraco.CMS libraries in the NuGet ecosystem. The issue involves stored xss via svg file upload. Remediation is available by upgrading affected packages to version 7.15.11, 8.18.9, 10.7.0, 11.5.0, 12.2.0.

CVE-2023-49279 at a Glance

CVE Identifier CVE-2023-49279
GHSA Identifier GHSA-6xmx-85x3-4cv2
Severity LOW
CVSS v3.1 Base Score 0.0
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Umbraco.CMS
Package Ecosystem NuGet
Published Date
Last Updated

Security Impact

CVSS: 0.0

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

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

How to Fix CVE-2023-49279

To remediate this vulnerability, upgrade all affected Umbraco.CMS 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.CMS fixed: 7.15.11
Upgrade Umbraco.CMS to 7.15.11
Umbraco.CMS fixed: 8.18.9
Upgrade Umbraco.CMS to 8.18.9
Umbraco.CMS fixed: 10.7.0
Upgrade Umbraco.CMS to 10.7.0
Umbraco.CMS fixed: 11.5.0
Upgrade Umbraco.CMS to 11.5.0
Umbraco.CMS fixed: 12.2.0
Upgrade Umbraco.CMS to 12.2.0
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.CMS

How to Check if You Are Affected

To determine whether your application is affected by CVE-2023-49279, inspect your project dependencies for Umbraco.CMS:

inspect dependencies for Umbraco.CMS

Analyze the terminal output to locate any version of Umbraco.CMS in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.15.11), 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.CMS, 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 A user with access to the backoffice can upload SVG files that include scripts. If the user can trick another user to load the media directly in a browser, the scripts can be executed. #### Workaround Implement the server side file validation https://docs.umbraco.com/umbraco-cms/reference/security/serverside-file-validation or Serve all media from an different host (e.g cdn) that where umbraco is hosted

CVE-2023-49279 Affected Umbraco.CMS Versions

5 component(s)
Fixed Versions:
7.15.118.18.910.7.011.5.012.2.0
Product / Package Ecosystem Affected Versions Fixed Version
Umbraco.CMS
NuGet
≥ 7.0.0
< 7.15.11
7.15.11
Umbraco.CMS
NuGet
≥ 8.0.0
< 8.18.9
8.18.9
Umbraco.CMS
NuGet
≥ 9.0.0
< 10.7.0
10.7.0
Umbraco.CMS
NuGet
≥ 11.0.0
< 11.5.0
11.5.0
Umbraco.CMS
NuGet
≥ 12.0.0
< 12.2.0
12.2.0

References

Frequently Asked Questions

What is CVE-2023-49279?
CVE-2023-49279 is a security vulnerability in Umbraco.CMS involving Stored XSS via SVG File Upload under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Umbraco.CMS versions are affected?
Affected versions include releases prior to 7.15.11, 8.18.9, 10.7.0, 11.5.0, 12.2.0 across affected packages: Umbraco.CMS.
What version fixes CVE-2023-49279?
Upgrading to 7.15.11, 8.18.9, 10.7.0, 11.5.0, 12.2.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is Umbraco.CMS affected?
Yes, Umbraco.CMS is affected in releases prior to 7.15.11, 8.18.9, 10.7.0, 11.5.0, 12.2.0. Upgrade your dependency to 7.15.11, 8.18.9, 10.7.0, 11.5.0, 12.2.0 or later.
What is the CVSS score of CVE-2023-49279?
CVE-2023-49279 has a CVSS v3.1 base score of 0.0 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:N.
What CWE is associated with CVE-2023-49279?
CVE-2023-49279 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-2023-49279?
Run the dependency tree command: 'inspect dependencies for Umbraco.CMS'. 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-6xmx-85x3-4cv2",
  "modified" : "2023-12-13T13:30:53Z",
  "published" : "2023-12-13T13:30:53Z",
  "aliases" : [ "CVE-2023-49279" ],
  "summary" : "Stored XSS via SVG File Upload",
  "details" : "#### Impact\nA user with access to the backoffice can upload SVG files that include scripts. If the user can trick another user to load the media directly in a browser, the scripts can be executed.\n\n#### Workaround\nImplement the server side file validation\nhttps://docs.umbraco.com/umbraco-cms/reference/security/serverside-file-validation\n\nor \n\nServe all media from an different host (e.g cdn) that where umbraco is hosted",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Umbraco.CMS"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0"
      }, {
        "fixed" : "7.15.11"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Umbraco.CMS"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.0.0"
      }, {
        "fixed" : "8.18.9"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Umbraco.CMS"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "9.0.0"
      }, {
        "fixed" : "10.7.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Umbraco.CMS"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "11.0.0"
      }, {
        "fixed" : "11.5.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "Umbraco.CMS"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "12.0.0"
      }, {
        "fixed" : "12.2.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/umbraco/Umbraco-CMS/security/advisories/GHSA-6xmx-85x3-4cv2"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-49279"
  }, {
    "type" : "WEB",
    "url" : "https://docs.umbraco.com/umbraco-cms/reference/security/serverside-file-validation"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/umbraco/Umbraco-CMS"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-12-13T13:30:53Z",
    "nvd_published_at" : "2023-12-12T20:15:08Z"
  }
}