CVE-2019-10062 Cross-site Scripting in aurelia-framework
Remote attackers can execute arbitrary JavaScript via XSS due to insufficient HTML sanitization in the Aurelia framework.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2019-10062?
CVE-2019-10062 is a medium-severity cross-site scripting vulnerability in n/a, published on 13 May 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-79
Which versions are affected by CVE-2019-10062?
2 open source packages ship an affected version, including aurelia-framework. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
aurelia-framework npm | All versions | 1.4.1 |
aurelia-framework npm | All versions | 1.4.1 |
Products include Bluespire Aurelia Framework.
How do I fix CVE-2019-10062?
Upgrade aurelia-framework to 1.4.1 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2019-10062 being exploited?
There is no known exploitation of CVE-2019-10062 in the wild and no public exploit code.
Sources
Also known as GHSA-m6j2-v3gq-45r5.