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-mf6mJSON: 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:
- https://nvd.nist.gov/vuln/detail/CVE-2024-21541
- https://security.snyk.io/vuln/SNYK-JS-DOMITERATOR-6157199
- https://github.com/advisories/GHSA-jrvm-mcxc-mf6m
Affected Packages
npm:dom-iterator
Dependent packages: 39Dependent 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