CVE-2021-41097: Prototype pollution in aurelia-path
9.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.55919%
CWE
Published
9/27/2021
Updated
2/1/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
aurelia-path | npm | < 1.1.7 | 1.1.7 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the parseComplexParam function's handling of keys during query string parsing. The pre-patch code allowed 'proto' as a key (via keys[j] input), which would create/overwrite properties on Object.prototype. The patch explicitly adds a check for 'proto' and throws an error, confirming this was the attack vector. The function's role in recursively building nested objects from URL parameters makes it the primary entry point for prototype pollution in this context.