CVE-2022-37623: Browserify shim Thlorenz Browserify-shim Vulnerable To Prototype Vulnerability
CRITICALCVE-2022-37623 is a CRITICAL (CVSS 9.8) thlorenz browserify-shim vulnerable to prototype vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting Browserify shim libraries in the npm ecosystem. The issue involves thlorenz browserify-shim vulnerable to prototype pollution. Remediation is available by upgrading affected packages to version 3.8.16.
CVE-2022-37623 at a Glance
Security Impact
CVSS: 9.8
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:H).
How to Fix CVE-2022-37623
To remediate this vulnerability, upgrade all affected Browserify shim 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 browserify-shim@3.8.16
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls browserify-shim
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2022-37623, inspect your project dependencies using npm:
npm ls browserify-shim
Analyze the terminal output to locate any version of Browserify shim in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.8.16), your application is affected.
Note: The npm ls browserify-shim 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 Browserify shim, 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-2022-37623 Affected Browserify shim Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
browserify-shim
|
npm |
< 3.8.16
|
3.8.16
|
References
Frequently Asked Questions
What is CVE-2022-37623?
Which Browserify shim versions are affected?
What version fixes CVE-2022-37623?
Is browserify-shim affected?
What is the CVSS score of CVE-2022-37623?
What CWE is associated with CVE-2022-37623?
How can I check npm dependencies for CVE-2022-37623?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-cfgr-75jx-h88g",
"modified" : "2024-04-22T23:20:54Z",
"published" : "2022-10-31T19:00:36Z",
"aliases" : [ "CVE-2022-37623" ],
"summary" : "thlorenz browserify-shim vulnerable to prototype pollution",
"details" : "Prototype pollution vulnerability in function resolveShims in resolve-shims.js in thlorenz browserify-shim 3.8.15 via the shimPath variable in resolve-shims.js.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "browserify-shim"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.8.16"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 3.8.15"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-37623"
}, {
"type" : "WEB",
"url" : "https://github.com/thlorenz/browserify-shim/issues/248"
}, {
"type" : "WEB",
"url" : "https://github.com/thlorenz/browserify-shim/pull/246"
}, {
"type" : "WEB",
"url" : "https://github.com/thlorenz/browserify-shim/commit/97855e622b6dcd117c77e6583701962ff45e7338"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/thlorenz/browserify-shim"
}, {
"type" : "WEB",
"url" : "https://github.com/thlorenz/browserify-shim/blob/464b32bbe142664cd9796059798f6c738ea3de8f/lib/resolve-shims.js#L158"
}, {
"type" : "WEB",
"url" : "https://github.com/thlorenz/browserify-shim/blob/464b32bbe142664cd9796059798f6c738ea3de8f/lib/resolve-shims.js#L94"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1321" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2024-04-22T23:20:54Z",
"nvd_published_at" : "2022-10-31T12:15:00Z"
}
}