Advisory

GHSA-jrvm-mcxc-mf6m

Also known as: CVE-2024-21541

Summary

dom-iterator code execution vulnerability

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-11-13 06:30 UTC
Modified
2025-01-14 21:18 UTC

Affected packages and fixes

dom-iterator

npm · All systems

Affected

  • introduced 0, fixed 1.0.1 (semver)

Fixed versions

1.0.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences