CVE-2021-41097
JSON

9.1critical

Prototype pollution in aurelia-path

Severity
9.1critical CVSS:3.1 by GitHub_M
Exploit likelihood
4.90% (higher than 92% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-3c9c-2p65-qvwv

Description

aurelia-path is part of the Aurelia platform and contains utilities for path manipulation. There is a prototype pollution vulnerability in aurelia-path before version 1.1.7. The vulnerability exposes Aurelia application that uses `aurelia-path` package to parse a string. The majority of this will be Aurelia applications that employ the `aurelia-router` package. An example is this could allow an attacker to change the prototype of base object class `Object` by tricking an application to parse the following URL: `https://aurelia.io/blog/?__proto__[asdf]=asdf`. The problem is patched in version `1.1.7`.

Affected

Product or packageVersionsReported by
aurelia path< 1.1.7CVE List
aurelia-path (npm)before 1.1.7GitHub Advisory Database
bluespire aurelia-pathbefore 1.1.7NVD

All scores

GitHub_M9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
GitHub9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:N/I:P/A:N

Classification

What each source says

CVE List

aurelia-path is part of the Aurelia platform and contains utilities for path manipulation. There is a prototype pollution vulnerability in aurelia-path before version 1.1.7. The vulnerability exposes Aurelia application that uses `aurelia-path` package to parse a string. The majority of this will be Aurelia applications that employ the `aurelia-router` package. An example is this could allow an attacker to change the prototype of base object class `Object` by tricking an application to parse the following URL: `https://aurelia.io/blog/?__proto__[asdf]=asdf`. The problem is patched in version `1.1.7`.

GitHub Advisory Database
Impact

The vulnerability exposes Aurelia application that uses aurelia-path package to parse a string. The majority of this will be Aurelia applications that employ the aurelia-router package. An example is this could allow an attacker to change the prototype of base object class Object by tricking an application to parse the following URL: https://aurelia.io/blog/?__proto__[asdf]=asdf

Patches

The problem should be patched in version 1.1.7. Any version earlier than this is vulnerable.

Workarounds

A partial work around is to free the Object prototype:

Object.freeze(Object.prototype)
NVD (es)

aurelia-path es parte de la plataforma Aurelia y contiene utilidades para la manipulación de rutas. Se presenta una vulnerabilidad de contaminación del prototipo en aurelia-path versiones anteriores a 1.1.7. La vulnerabilidad expone a la aplicación Aurelia que usa el paquete "aurelia-path" para analizar una cadena. La mayoría serán aplicaciones de Aurelia que emplean el paquete "aurelia-router". Un ejemplo es que esto podría permitir a un atacante cambiar el prototipo de la clase de objeto base "Object" al engañar a una aplicación para que analice la siguiente URL: "https://aurelia.io/blog/?__proto__[asdf]=asdf". El problema está parcheado en la versión "1.1.7"

References

Sources

SourceRecordLicence
CVE ListCVE-2021-41097 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-3c9c-2p65-qvwv changed 2026-07-08CC-BY-4.0
NVDCVE-2021-41097 changed 2026-06-17Public domain