Quick answers
- Is CVE-2022-37623 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2022-37623 being exploited in the wild.
- How severe is CVE-2022-37623?
- Low severity, with a CVSS score of 3.1, published 31 October 2022.
- Which products and versions are affected?
- browserify-shim (npm) SEMVER:introduced=0,fixed=3.8.16.
- Is there a fix for CVE-2022-37623?
- Yes. browserify-shim (npm): upgrade to 3.8.16 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2022-37623 attacked?
- It is attacked over the network.
- Am I affected by CVE-2022-37623?
- Check whether you run browserify-shim (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- browserify-shim (npm): upgrade to 3.8.16 or later
npm install browserify-shim@3.8.16
Technical details
The vulnerability is a prototype pollution flaw in the resolveShims function within resolve-shims.js of browserify-shim version 3.8.15 and earlier. The vulnerability stems from unsafe manipulation of the shimPath variable, which allows an attacker to pollute the Object prototype by injecting properties through specially crafted input. No authentication or user interaction is required; a build process that processes untrusted or attacker-controlled configuration files can trigger the exploit. An attacker can modify prototype chain behavior to affect all objects in the JavaScript runtime, potentially leading to code execution or logic bypass. The vulnerability has been patched in version 3.8.16 and later.
Affected products
- thlorenz browserify-shim 3.8.15 and earlier
Identifiers
- CVE-2022-37623
- GHSA-cfgr-75jx-h88g
Timeline
- 2022-10-31: disclosed: Vulnerability published (GHSA-cfgr-75jx-h88g)
- 2022-10-31: patched: Fix released in version 3.8.16