Description
The HTMLSanitizer class in html-sanitizer.ts in all released versions of the Aurelia framework 1.x repository is vulnerable to XSS. The sanitizer only attempts to filter SCRIPT elements, which makes it feasible for remote attackers to conduct XSS attacks via (for example) JavaScript code in an attribute of various other elements. An attacker might also exploit a bug in how the SCRIPT string is processed by splitting and nesting them for example.
Remediation
References
https://aurelia.io
https://github.com/aurelia/templating-resources/blob/0cef07a8cac8e99146d8e1c4b734491bb3dc4724/src/html-sanitizer.js
https://www.gosecure.net/blog/2021/05/12/aurelia-framework-insecure-default-allows-xss/
Related Vulnerabilities
CVE-2019-10412 Vulnerability in maven package com.inedo.proget:inedo-proget
CVE-2015-0254 Vulnerability in maven package javax.servlet.jsp.jstl:jstl
CVE-2020-26882 Vulnerability in maven package com.typesafe.play:play
CVE-2013-1777 Vulnerability in maven package org.apache.geronimo.framework:geronimo-jmx-remoting
CVE-2018-1000012 Vulnerability in maven package org.jvnet.hudson.plugins:warnings