# CVE-2022-37623: thlorenz browserify-shim prototype pollution in resolve-shims

Source: https://junglewise.ai/threats/cve-2022-37623-thlorenz-browserify-shim-prototype-pollution-in-resolve-shims  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-10-31. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2022-37623 · Severity: low · CVSS 3.1 · Published 2022-10-31

browserify-shim is a Node.js build tool that allows legacy CommonJS modules to be used in browser bundles. A prototype pollution vulnerability in the shimPath variable processing allows attackers to inject malicious properties into JavaScript objects, potentially corrupting application logic, escalating privileges, or enabling remote code execution in build pipelines.

Technologies: [browserify-shim (npm)](https://junglewise.ai/threats/technologies/browserify-shim). Vendors: [npm](https://junglewise.ai/threats/vendors/npm).

## 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

  ```sh
  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

## References

- [https://github.com/thlorenz/browserify-shim/issues/248](https://github.com/thlorenz/browserify-shim/issues/248)

## Related threats

- [thlorenz browserify-shim prototype pollution in resolve-shims](https://junglewise.ai/threats/cve-2022-37621-thlorenz-browserify-shim-prototype-pollution-in-resolve-shims)
- [thlorenz browserify-shim prototype pollution in resolveShims](https://junglewise.ai/threats/cve-2022-37617-thlorenz-browserify-shim-prototype-pollution-in-resolveshims)
