Skip to content

Prototype pollution in aurelia-path

Critical severity GitHub Reviewed Published Sep 26, 2021 in aurelia/path • Updated Feb 1, 2023

Package

npm aurelia-path (npm)

Affected versions

< 1.1.7

Patched versions

1.1.7

Description

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)

References

@bigopon bigopon published to aurelia/path Sep 26, 2021
Published by the National Vulnerability Database Sep 27, 2021
Reviewed Sep 27, 2021
Published to the GitHub Advisory Database Sep 27, 2021
Last updated Feb 1, 2023

Severity

Critical
9.1
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

CVE ID

CVE-2021-41097

GHSA ID

GHSA-3c9c-2p65-qvwv

Source code

Credits

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.