---
title: "CVE-2023-48313"
date: "2024-09-23T07:00:00+00:00"
url: "https://checkmarx.com/zero/vulnerabilities/cve-2023-48313/"
---

# CVE-2023-48313

[Disclosed vulnerabilities](https://checkmarx.com/zero/vulnerabilities/)

Fixed: Dec 11, 2023

CVE-2023-48313  **Published:** Sep 23, 2024

CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')  4.3 Medium Severity DOM-XSS login umbraco XSS

RS Raphael Silva  Reported by Checkmarx Zero

Details Overview

## Summary

The package `@umbraco/Umbraco-CMS` contains a DOM-based XSS vulnerability in the login functionality. The vulnerability occurs in the `login.controller.js` file, where a user-supplied `returnPath` parameter is not properly validated, allowing for the injection of malicious JavaScript. Attackers can exploit this by crafting a URL that triggers XSS once a user logs in, potentially gaining access to elevated privileges if an administrator uses the malicious link. The issue was addressed in Umbraco versions 10.8.1 and 12.3.4 by validating the `returnPath` parameter.

## Product

This vulnerability affects the `@umbraco/Umbraco-CMS` package from v10.0.0 to v10.8.0 and from v11.0.0 to v12.3.3.

## Impact

This vulnerability can lead to the execution of arbitrary JavaScript via a crafted URL, which triggers DOM-based XSS upon login. Attackers can use this to perform actions as logged-in users, including administrators, resulting in potential privilege escalation and even remote code execution.

## Steps to reproduce

1. Install the `@umbraco/Umbraco-CMS` package.
2. Navigate to the following crafted URL: `<path_to_your_project>/umbraco/#/login/false?mculture=en-US&returnPath=javascript:alert(document.domain)`.
3. Upon login, the XSS will trigger, executing the payload in the `returnPath` parameter.

### Expected result:

The XSS is triggered, and an alert displaying the document’s domain is shown.

## Remediation

The issue was fixed by ensuring that the `returnPath` parameter is validated before allowing a redirect. Specifically, the `returnPath` is now only allowed if it is a valid URL under the same origin, preventing DOM-based XSS and other related vulnerabilities.

A fix was released in the following commit: [4a7ad4a562e7f07641d4a33cd246509f4ab59cd8](https://github.com/umbraco/Umbraco-CMS/commit/4a7ad4a562e7f07641d4a33cd246509f4ab59cd8).

Users are advised to update to Umbraco versions 10.8.1 or 12.3.4, which include this fix.

## Credit

This issue was discovered and reported by Checkmarx Security Researcher [Raphael Silva](https://www.linkedin.com/in/raphaelcssilva/).

## Resources

1. [Release notes for 10.8.1](https://github.com/umbraco/Umbraco-CMS/releases/tag/release-10.8.1)
2. [Release notes for 12.3.4](https://github.com/umbraco/Umbraco-CMS/releases/tag/release-12.3.4)

0  Medium Severity CVSS v3.1 Score

   4.3

CVSS v3.1 Vectors- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: None
- User Interaction: Required
- Scope: Unchanged
- Confidentiality Impact: None
- Integrity Impact: Low
- Availability Impact: None

Advisory Timeline1. Discovered Aug 28, 2023
2. Disclosed Sep 14, 2023 The vulnerability was privately disclosed to the maintainer
3. Fixed Dec 11, 2023 A commit was released with the vulnerability fix.

## Explore more findings

[22 Apr 2026 CVE-2026-42236  Unauthenticated Denial of Service in n8n via MCP Client Registration   8.7  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2026-4223/) [22 Apr 2026 CVE-2026-42230  n8n has Open Redirect in MCP OAuth Consent Flow   5.1  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2026-42230/) [27 Feb 2026 CVE-2026-27578  n8n Vulnerable to Stored XSS via Various Nodes   8.5  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2026-27578/) [26 Feb 2026 CVE-2026-27950  Use-after-free in FreeRDP SDL2   5.5  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2026-27950/) [27 Nov 2025 CVE-2025-34281  Stored Cross-Site Scripting (XSS) in ThingsBoard   6.2  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2025-34281/) [17 Jan 2025 CVE-2025-0825  HTTP Response Splitting in cpp-httplib   6.9  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2025-0825/) [17 Jun 2025 CVE-2025-6050  Stored Cross-Site Scripting (XSS) in Mezzanine CMS Admin Interface   4.8  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2025-6050/) [12 Dec 2024 CVE-2024-8374  Code Injection in UltiMaker Cura   7.8  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2024-8374/) [14 Nov 2024 CVE-2024-52526  Stored Cross-site Scripting in @LibreNMS/LibreNMS Services Tab   7.5  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2024-52526/) [14 Nov 2024 CVE-2024-51497  Stored Cross-site Scripting in @LibreNMS/LibreNMS Custom OID Tab   7.5  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2024-51497/) [14 Nov 2024 CVE-2024-51496  Reflected Cross-site Scripting in @LibreNMS/LibreNMS /wireless and /health endpoints   7.5  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2024-51496/) [  14 Nov 2024 CVE-2024-51495  Stored Cross-site Scripting in @LibreNMS/LibreNMS Device Overview `overwrite\_ip` Field   7.5  Visit the page ](https://checkmarx.com/zero/vulnerabilities/cve-2024-51495/)
