GHSA-jrvm-mcxc-mf6m

Suggest an improvement
Source
https://github.com/advisories/GHSA-jrvm-mcxc-mf6m
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/11/GHSA-jrvm-mcxc-mf6m/GHSA-jrvm-mcxc-mf6m.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-jrvm-mcxc-mf6m
Aliases
Published
2024-11-13T06:30:29Z
Modified
2025-01-14T21:18:03Z
Severity
  • 7.3 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L CVSS Calculator
  • 5.5 (Medium) CVSS_V4 - CVSS: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:P CVSS Calculator
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.

Database specific
{
    "nvd_published_at": "2024-11-13T05:15:14Z",
    "severity": "MODERATE",
    "github_reviewed_at": "2024-11-13T18:34:51Z",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-94"
    ]
}
References

Affected packages

npm / dom-iterator

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.0.1

Database specific

{
    "last_known_affected_version_range": "<= 1.0.0"
}