CVE-2019-10062: Aurelia framework Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-m6j2-v3gq-45r5
CWE-79
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2019-10062
GHSA Identifier GHSA-m6j2-v3gq-45r5
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Aurelia framework
Package Ecosystem npm
Published Date
Last Updated

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.

aurelia-framework fixed: 1.4.1
npm install aurelia-framework@1.4.1
Verify Direct and Transitive Dependencies

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

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.

CVE-2019-10062 Affected Aurelia framework Versions

1 component(s)
Fixed Versions:
1.4.1
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?
CVE-2019-10062 is a security vulnerability in Aurelia framework involving Cross-site Scripting in aurelia-framework under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Aurelia framework versions are affected?
Affected versions include releases prior to 1.4.1 across affected packages: aurelia-framework.
What version fixes CVE-2019-10062?
Upgrading to 1.4.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is aurelia-framework affected?
Yes, aurelia-framework is affected in releases prior to 1.4.1. Upgrade your dependency to 1.4.1 or later.
What CWE is associated with CVE-2019-10062?
CVE-2019-10062 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (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.).
How can I check npm dependencies for CVE-2019-10062?
Run the dependency tree command: 'npm ls aurelia-framework'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}