Skip to main content
CRITICAL

CVE-2024-21541

CVSS v3

9.8

CRITICAL

EPSS Score

1.1 %

exploit probability, as of 2026-09-25

CISA KEV

No

known exploited

Exploitation

—

SSVC status

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.

Technical details

Published
2024-11-13

Frequently asked questions

What is CVE-2024-21541?

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.

Is CVE-2024-21541 actively exploited?

Active exploitation of CVE-2024-21541 has not been confirmed. Its EPSS score was 1.1% on 2026-09-25, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2024-21541?

CVE-2024-21541 has a CVSS v3 base score of 9.8 (CRITICAL severity).

Is CVE-2024-21541 affecting your environment?

Use isMalicious to check if any of your IPs or domains are associated with this vulnerability's IOCs.

No credit card required · 500 free checks/month · Free API key