CVE-2019-10062: Aurelia framework Cross-Site Scripting Vulnerability
MODERATECVE-2019-10062 is a MODERATE cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Aurelia framework libraries in the npm ecosystem. The issue involves cross-site scripting in aurelia-framework. Remediation is available by upgrading affected packages to version 1.4.1.
CVE-2019-10062 at a Glance
How to Fix CVE-2019-10062
To remediate this vulnerability, upgrade all affected Aurelia framework dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install aurelia-framework@1.4.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls aurelia-framework
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2019-10062, inspect your project dependencies using npm:
npm ls aurelia-framework
Analyze the terminal output to locate any version of Aurelia framework in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.4.1), your application is affected.
Note: The npm ls aurelia-framework command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Aurelia framework, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2019-10062 Affected Aurelia framework Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
aurelia-framework
|
npm |
< 1.4.1
|
1.4.1
|
References
Frequently Asked Questions
What is CVE-2019-10062?
Which Aurelia framework versions are affected?
What version fixes CVE-2019-10062?
Is aurelia-framework affected?
What CWE is associated with CVE-2019-10062?
How can I check npm dependencies for CVE-2019-10062?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-m6j2-v3gq-45r5",
"modified" : "2022-04-04T20:06:43Z",
"published" : "2022-02-10T23:42:39Z",
"aliases" : [ "CVE-2019-10062" ],
"summary" : "Cross-site Scripting in aurelia-framework",
"details" : "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.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "aurelia-framework"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.4.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-10062"
}, {
"type" : "WEB",
"url" : "https://github.com/aurelia/framework/issues/992"
}, {
"type" : "WEB",
"url" : "https://discourse.aurelia.io/t/xss-vulnerability-in-htmlsanitizer-might-be-insufficiently-handled/4219"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/aurelia/framework"
}, {
"type" : "WEB",
"url" : "https://github.com/aurelia/templating-resources/blob/0cef07a8cac8e99146d8e1c4b734491bb3dc4724/src/html-sanitizer.js"
}, {
"type" : "WEB",
"url" : "https://www.gosecure.net/blog/2021/05/12/aurelia-framework-insecure-default-allows-xss"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2021-05-17T20:26:22Z",
"nvd_published_at" : "2021-05-13T21:15:00Z"
}
}