@eslint/plugin-kit CVE-2024-21539
HIGHAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit file with crafted ESLint comment containing massive whitespace
-
DeliveryCI/CD pipeline or editor integration runs ESLint on file
-
Exploit@eslint/plugin-kit ConfigCommentParser.parseStringConfig receives unsanitized comment string
-
ExecutionBacktracking-prone regex catastrophically backtracks over whitespace run
-
ImpactCPU exhaustion crashes Node.js ESLint process
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V2 - Validation and Business Logic Regex complexity limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The vulnerability requires that an attacker supply an ESLint-parseable source file containing an inline ESLint configuration comment (e.g., |
| Impact | The CVSS 4.0 vector AV:N/AC:L/AT:N/PR:N/UI:N with VA:H scores 7.7, reflecting a low-complexity network-reachable availability attack. However, real-world risk is modulated by deployment context: the vulnerability is exploitable only when ESLint (using @eslint/plugin-kit) processes attacker-controlled source files, which is most relevant in CI/CD pipelines linting user-submitted code, automated code review bots, or online linting services. The E:P supplemental metric confirms a proof-of-concept exists, consistent with the fix commit's test cases demonstrating 100,000-character whitespace strings. EPSS at 0.48% and 38th percentile is low, and KEV absence suggests no confirmed threat-actor exploitation at time of analysis. The impact is strictly a DoS - the CVSS shows VC:N/VI:N/VA:H with no scope change - so there is no confidentiality or integrity risk. Overall, this is a moderate-priority issue: patch quickly in CI/CD environments processing untrusted files, but it is not an emergency for developer-workstation ESLint usage on trusted codebases. |
| Exploit ScenarioDerived | An attacker submits a JavaScript file to an open-source project's CI pipeline containing an ESLint inline comment such as |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 03, 2026
Regular Expression Denial of Service in @eslint/plugin-kit before 0.2.3 allows CPU exhaustion and process crash by supplying maliciously crafted ESLint inline comment configuration strings. The vulnerable ConfigCommentParser.parseStringConfig method applied the regex /\s*([:,])\s*/gu to unsanitized input without first trimming whitespace, enabling catastrophic backtracking when strings contain large runs of whitespace adjacent to colons or commas. A proof-of-concept exploit is confirmed (CVSS 4.0 E:P supplemental metric), though EPSS of 0.48% at the 38th percentile indicates no observed widespread exploitation and this is not in CISA KEV.
RemediationAI
Upgrade @eslint/plugin-kit to version 0.2.3 or later - this is the vendor-released patch confirmed by the upstream fix commit at https://github.com/eslint/rewrite/commit/071be842f0bd58de4863cdf2ab86d60f49912abf and documented in the Snyk advisory at https://security.snyk.io/vuln/SNYK-JS-ESLINTPLUGINKIT-8340627. In package.json or lockfile, pin to >=0.2.3 and run npm audit fix or yarn upgrade @eslint/plugin-kit. If immediate upgrade is blocked, restrict ESLint execution to trusted source files and avoid running ESLint against user-submitted or externally sourced code in automated pipelines; this eliminates the untrusted-input attack surface entirely but may not be feasible in open-source CI or code review tooling. Adding a file-size or comment-string-length guard upstream of ESLint invocation is a possible compensating control but carries risk of breaking legitimate large-comment edge cases.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-1333 (Inefficient Regular Expression Complexity) within the ConfigCommentParser class in packages/plugin-kit/src/config-comment-parser.js of the ESLint rewrite monorepo. The method parseStringConfig - responsible for parsing key-value pairs from ESLint inline comments like eslint-disable-next-line rule: value - applied /\s*([:,])\s*/gu globally to untrimmed input. Without a leading .trim(), strings beginning or ending with large whitespace blocks caused the regex engine to attempt exponential match permutations. The fix (commit 071be842) added .trim() before the replace and introduced a negative lookbehind (?<!\s) to prevent the engine from backtracking through leading whitespace. The package is part of the ESLint flat-config rewrite infrastructure and is consumed by ESLint plugin authors and tools using the new ESLint configuration API. No CPE string was provided in the intelligence data.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P
Network reachable via file submission to CI systems; no privileges or interaction needed; impact is availability-only with no confidentiality or integrity effect.
Primary rating from Vendor (snyk).
CVSS VectorVendor: snyk
Lifecycle Timeline
3DescriptionCVE.org
Versions of the package @eslint/plugin-kit before 0.2.3 are vulnerable to Regular Expression Denial of Service (ReDoS) due to improper input sanitization. An attacker can increase the CPU usage and crash the program by exploiting this vulnerability.
Blast Radius
ecosystem impact- 1 npm packages depend on @eslint/plugin-kit (1 direct, 0 indirect)
Ecosystem-wide dependent count for version 0.2.3.
Executive ViewAI
@eslint/plugin-kit before version 0.2.3 contains a denial-of-service vulnerability that could halt build pipelines and disrupt CI/CD workflows when malicious configurations are supplied. With proof-of-concept code publicly available, the vulnerability poses an immediate operational risk to dependent organizations, though current real-world exploitation remains limited. Supply chain exposure makes this a high-priority remediation target for any organization using this library.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB