Import In The Middle
Approved changes feed: RSS · Atom
cpe:2.3:a:datadog:import-in-the-middle:*:*:*:*:*:*:*:*
part: a version: * update: *
| Vendor | Datadog (8c31a62c-edda-5c02-83f1-ebdd4906350f) |
|---|---|
| Product | Import In The Middle (ad7aa879-3e95-5046-875d-6fcee594af26) |
| Edition | * |
| Language | * |
| Software edition | * |
| Target software | * |
| Target hardware | * |
| Other | * |
| Notes | Imported from gcve-enriched-dumps CVE data |
PURL mappings
| PURL | Source | Last updated |
|---|---|---|
| No PURL mappings for this CPE yet. | ||
Vulnerability references
| Identifier | cpeApplicability | Submitted | db.gcve.eu details | Rationale |
|---|---|---|---|---|
CVE:CVE-2023-38704 |
vulnerable | 2026-06-08 06:08:18.666566 |
import-in-the-middle allows unsanitized user controlled input in module generation
HIGH (8.1)
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.
Published: 2023-08-07T19:24:33.271Z
Updated: 2024-10-03T18:05:54.891Z |
Imported from gcve-enriched-dumps CVE data |
Contribute
You can submit an edit proposal for this CPE entry or suggest a related product/vendor addition using the action button above.