Skip to content

CVE-2024-21541 dom-iterator code execution vulnerability

MediumCVSS 6.9 EPSS 1.1%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial

Description

Versions of the package dom-iterator before 1.0.1 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.

Upgrade path

3 packages: 2 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
dom-iterator All versions No fix listed No fix yet
matthewmueller dom-iterator <= 1.0.0 after 1.0.0 Fixed
npm dom-iterator(npm) < 1.0.1; <= 1.0.0 1.0.1 Fixed

Affected products

ProductAffected versionsFixed in
npm dom-iterator(npm) <= 1.0.0 No fix listed
dom-iterator All versions No fix listed
matthewmueller dom-iterator <= 1.0.0 No fix listed
npm dom-iterator(npm) < 1.0.1 1.0.1

References