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 package | Versions | Reported by |
|---|---|---|
| aurelia path | < 1.1.7 | CVE List |
| aurelia-path (npm) | before 1.1.7 | GitHub Advisory Database |
| bluespire aurelia-path | before 1.1.7 | NVD |
All scores
| GitHub_M | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| GitHub | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 5.0medium CVSS:2.0 | AV: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
| https://github.com/aurelia/path/security/advisories/GHSA-3c9c-2p65-qvwv | mitigation, third-party-advisory, web | |
| https://github.com/aurelia/path/issues/44 | exploit, issue-tracking, third-party-advisory, web | |
| https://github.com/aurelia/path/commit/7c4e235433a4a2df9acc313fbe891758084fdec1 | patch, third-party-advisory, web | |
| https://github.com/aurelia/path/releases/tag/1.1.7 | release-notes, third-party-advisory, web | |
| https://www.npmjs.com/package/aurelia-path | product, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-41097 | advisory | |
| https://github.com/aurelia/path | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-41097 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-3c9c-2p65-qvwv changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2021-41097 changed 2026-06-17 | Public domain |