Ecosyste.ms: Advisories

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

Security Advisories: GSA_kwCzR0hTQS1qcnZtLW1jeGMtbWY2bc4ABBSa

dom-iterator code execution vulnerability

All versions of the package dom-iterator are vulnerable to Arbitrary Code Execution due to use of the Function constructor without complete input sanitization. Function generates a new function body and thus care must be given to ensure that the inputs to Function are not attacker-controlled. The risks involved are similar to that of allowing attacker-controlled input to reach eval.

Permalink: https://github.com/advisories/GHSA-jrvm-mcxc-mf6m
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1qcnZtLW1jeGMtbWY2bc4ABBSa
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: 8 days ago
Updated: 7 days ago


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

Identifiers: GHSA-jrvm-mcxc-mf6m, CVE-2024-21541
References: Blast Radius: 28.2

Affected Packages

npm:dom-iterator
Dependent packages: 39
Dependent repositories: 7,385
Downloads: 241,384 last month
Affected Version Ranges: <= 1.0.0
No known fixed version
All affected versions: 0.0.5, 0.1.0, 0.2.0, 0.2.1, 0.3.0, 1.0.0