CVE-2024-21541

State
Published
Severity
6.9 Medium
Published
Nov 13, 2024
Updated
Jan 16, 2025
Reserved
Dec 22, 2023

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.06.9 MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:Psnyk
3.17.3 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:Psnyk

Weaknesses

  • CWE-94 Arbitrary Code Execution

Affected Products

ProductVersions
dom-iteratorn/a
  • before 1.0.1Affected
org.webjars.npm:dom-iteratorn/a
  • all versionsAffected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.