Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS1mOHBxLTM5MjYtOGd4Nc4AA1Lv

Unsanitized user controlled input in module generation

Impact

The import-in-the-middle loader used by @opentelemetry/instrumentation 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. It allows for remote code execution in cases where an application passes user-supplied input directly to an import() function.

Patches

This vulnerability has been patched in @opentelemetry/instrumentation version 0.41.2

Workarounds

--experimental-loader=@opentelemetry/instrumentation/hook.mjs
--experimental-loader @opentelemetry/instrumentation/hook.mjs
--loader=import-in-the-middle/hook.mjs
--loader import-in-the-middle/hook.mjs

References

Permalink: https://github.com/advisories/GHSA-f8pq-3926-8gx5
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1mOHBxLTM5MjYtOGd4Nc4AA1Lv
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: 9 months ago
Updated: 9 months ago


CVSS Score: 8.1
CVSS vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:L

Identifiers: GHSA-f8pq-3926-8gx5
References: Repository: https://github.com/open-telemetry/opentelemetry-js
Blast Radius: 29.0

Affected Packages

npm:@opentelemetry/instrumentation
Dependent packages: 375
Dependent repositories: 3,823
Downloads: 27,111,353 last month
Affected Version Ranges: >= 0.40.0, < 0.41.2
Fixed in: 0.41.2
All affected versions: 0.40.0, 0.41.0, 0.41.1
All unaffected versions: 0.12.0, 0.13.0, 0.14.0, 0.15.0, 0.16.0, 0.17.0, 0.18.0, 0.18.1, 0.18.2, 0.19.0, 0.20.0, 0.21.0, 0.22.0, 0.23.0, 0.24.0, 0.25.0, 0.26.0, 0.27.0, 0.28.0, 0.29.0, 0.29.1, 0.29.2, 0.30.0, 0.31.0, 0.32.0, 0.33.0, 0.34.0, 0.35.0, 0.35.1, 0.36.0, 0.36.1, 0.37.0, 0.38.0, 0.39.0, 0.39.1, 0.41.2, 0.42.0, 0.43.0, 0.44.0, 0.45.0, 0.45.1, 0.46.0, 0.47.0, 0.48.0, 0.49.0, 0.49.1, 0.50.0, 0.51.0