GitHub Advisoryadvisory · npm
GHSA-m6j2-v3gq-45r5 Cross-site Scripting in aurelia-framework
MEDIUM
Official page ↗
- Aliases
- CVE-2019-10062
- Ecosystem
- npm
- Packages
- aurelia-framework
- Severity
- Moderate
- Weaknesses
- CWE-79
- Reviewed
- 2021-05-17
Affected packages
• npm aurelia-framework: < 1.4.1 → fixed in 1.4.1
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.
Related
Alias · CVE (1)
- CVE-2019-10062 The HTMLSanitizer class in html-sanitizer.ts in all released versions of the Aurelia framework 1.x repository is vulnerable to XSS. vulnerability
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2019-10062 advisory
- https://github.com/aurelia/framework/issues/992 web
- https://discourse.aurelia.io/t/xss-vulnerability-in-htmlsanitizer-might-be-insufficiently-handled/4219 web
- https://github.com/aurelia/framework package
- https://github.com/aurelia/templating-resources/blob/0cef07a8cac8e99146d8e1c4b734491bb3dc4724/src/html-sanitizer.js web
- https://www.gosecure.net/blog/2021/05/12/aurelia-framework-insecure-default-allows-xss web