Skip to main content

@eslint/plugin-kit CVE-2024-21539

HIGH
Inefficient Regular Expression Complexity (ReDoS) (CWE-1333)
2024-11-19 report@snyk.io
7.7
CVSS 4.0 · Vendor: snyk
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit file with crafted ESLint comment containing massive whitespace
  2. Delivery
    CI/CD pipeline or editor integration runs ESLint on file
  3. Exploit
    @eslint/plugin-kit ConfigCommentParser.parseStringConfig receives unsanitized comment string
  4. Execution
    Backtracking-prone regex catastrophically backtracks over whitespace run
  5. Impact
    CPU 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., eslint-disable, eslint-enable, or eslint-disable-next-line) where the comment body includes a very large sequence of whitespace characters (empirically, ~100,000 spaces) adjacent to a colon or comma delimiter. The CVSS PR:N indicates no authentication is required at the ESLint tool layer - if the linter processes the file, the attack fires. Limiting factors: the target must be running @eslint/plugin-kit before 0.2.3; ESLint must actually process the malicious file (attacker needs code submission or file upload capability to the linting environment); and the scope is strictly process-level DoS with no code execution or data access. Developer workstations running ESLint only on their own trusted code are at negligible risk; CI/CD pipelines, online linters, and automated code review bots processing untrusted pull requests are the primary risk surface.

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 /* eslint-disable rule-name followed by 100,000 space characters then : value */. When the CI runner executes ESLint - which internally uses @eslint/plugin-kit to parse this comment - parseStringConfig passes the unsanitized string to the backtracking-prone regex, causing the Node.js process to spike to 100% CPU and eventually crash or time out. The fix commit's test suite includes exactly this pattern (100,000 repeated spaces), confirming the attack is straightforward to replicate from the public proof-of-concept.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

npm @eslint/plugin-kit fix: 0.2.3

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

Vendor (snyk) PRIMARY 7.7 HIGH
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
vuln.today AI 7.5 HIGH

Network reachable via file submission to CI systems; no privileges or interaction needed; impact is availability-only with no confidentiality or integrity effect.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (snyk).

CVSS VectorVendor: snyk

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Analysis Updated
Aug 03, 2026 - 16:29 vuln.today
v1 - CVSS changed
CVSS changed
Aug 03, 2026 - 16:22 NVD
7.5 (HIGH) 7.7 (HIGH)
CVE Published
Nov 19, 2024 - 05:15 cve.org
HIGH 7.5

DescriptionCVE.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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 1 npm packages depend on @eslint/plugin-kit (1 direct, 0 indirect)

Ecosystem-wide dependent count for version 0.2.3.

Executive ViewAI

Why It Matters

@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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.5%
Top 62% exploitable
Prevalence
Medium
widely used JavaScript/TypeScript linting toolchain, but plugin-kit targets plugin authors
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy