CVE-2024-21541

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-21541
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-21541.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-21541
Aliases
Published
2024-11-13T05:15:14Z
Modified
2025-01-15T05:06:17.370220Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/matthewmueller/dom-iterator

Affected ranges

Type
GIT
Repo
https://github.com/matthewmueller/dom-iterator
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

0.*

0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.1.0
0.1.1
0.2.0
0.2.1
0.3.0

1.*

1.0.0