Vulnerabilities in pkg:npm/aurelia-path
PACKAGECVE-2021-41097 is a CRITICAL (CVSS 9.1) prototype pollution vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting Aurelia path libraries in the npm ecosystem. The issue involves prototype pollution in aurelia-path. Remediation is available by upgrading affected packages to version 1.1.7.
pkg:npm/aurelia-path
Vulnerability advisories affecting package pkg:npm/aurelia-path. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-3c9c-2p65-qvwv | CVE-2021-41097 | CRITICAL | Prototype pollution in aurelia-path |
CVE-2021-41097 at a Glance
Security Impact
CVSS: 9.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N).
How to Fix CVE-2021-41097
To remediate this vulnerability, upgrade all affected Aurelia path dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install aurelia-path@1.1.7
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls aurelia-path
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2021-41097, inspect your project dependencies using npm:
npm ls aurelia-path
Analyze the terminal output to locate any version of Aurelia path in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.7), your application is affected.
Note: The npm ls aurelia-path 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-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution'), where the product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype. In Aurelia path, 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
CVE-2021-41097 Affected Aurelia path Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
aurelia-path
|
npm |
< 1.1.7
|
1.1.7
|
References
Frequently Asked Questions
What is CVE-2021-41097?
Which Aurelia path versions are affected?
What version fixes CVE-2021-41097?
Is aurelia-path affected?
What is the CVSS score of CVE-2021-41097?
What CWE is associated with CVE-2021-41097?
How can I check npm dependencies for CVE-2021-41097?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-3c9c-2p65-qvwv",
"modified" : "2022-05-26T19:50:24Z",
"published" : "2021-09-27T20:12:16Z",
"aliases" : [ "CVE-2021-41097" ],
"summary" : "Prototype pollution in aurelia-path",
"details" : "### Impact\nThe 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`\n\n### Patches\nThe problem should be patched in version `1.1.7`. Any version earlier than this is vulnerable.\n\n### Workarounds\nA partial work around is to free the Object prototype:\n```ts\nObject.freeze(Object.prototype)\n```",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "aurelia-path"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.1.7"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/aurelia/path/security/advisories/GHSA-3c9c-2p65-qvwv"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-41097"
}, {
"type" : "WEB",
"url" : "https://github.com/aurelia/path/issues/44"
}, {
"type" : "WEB",
"url" : "https://github.com/aurelia/path/commit/7c4e235433a4a2df9acc313fbe891758084fdec1"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/aurelia/path"
}, {
"type" : "WEB",
"url" : "https://github.com/aurelia/path/releases/tag/1.1.7"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/package/aurelia-path"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1321", "CWE-915" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2021-09-27T19:18:37Z",
"nvd_published_at" : "2021-09-27T18:15:00Z"
}
}