import-in-the-middle is a module loading interceptor specifically for ESM modules. The import-in-the-middle loader works by generating a wrapper module on the fly. The wrapper uses the module specifier to load the original module and add some wrapping code. Prior to version 1.4.2, it allows for remote code execution in cases where an application passes user-supplied input directly to the `import()` function. This vulnerability has been patched in import-in-the-middle version 1.4.2. Some workarounds are available. Do not pass any user-supplied input to `import()`. Instead, verify it against a set of allowed values. If using import-in-the-middle, directly or indirectly, and support for EcmaScript Modules is not needed, ensure that no options are set, either via command-line or the `NODE_OPTIONS` environment variable, that would enable loader hooks.
History

Thu, 03 Oct 2024 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published: 2023-08-07T19:24:33.271Z

Updated: 2024-10-03T18:05:54.891Z

Reserved: 2023-07-24T16:19:28.366Z

Link: CVE-2023-38704

cve-icon Vulnrichment

Updated: 2024-08-02T17:46:56.904Z

cve-icon NVD

Status : Analyzed

Published: 2023-08-07T20:15:09.693

Modified: 2023-08-11T17:56:10.563

Link: CVE-2023-38704

cve-icon Redhat

No data.