We are currently running Nextcloud Server (version 25.0.3.2) in our environment and recently performed a SAST against the core codebase. The scan flagged XSS Vulnerability :
- Multiple DOM-based XSS in
core-common.js
-
File:
nextcloud/dist/core-common.js
-
Context: In the
resolveURL()
function, the code readswindow.location.href
and then uses
urlParsingNode.setAttribute('href', href);
href = urlParsingNode.href;
at lines 71153, 71157, 74348, 74352, etc. The scanner classified this as a DOM-XSS risk (taint flags: VALIDATED_OPEN_REDIRECT, WEB, XSS).
Does anyone got similar scan findings?