Vulnerabilities in pkg:npm/@eslint/plugin-kit
PACKAGEGHSA-xffm-g5w8-qvg7 is a LOW denial of service vulnerability (CWE-1333: Inefficient Regular Expression Complexity) affecting @eslint/plugin kit libraries in the npm ecosystem. The issue involves @eslint/plugin-kit is vulnerable to regular expression denial of service attacks through configcommentparser. Remediation is available by upgrading affected packages to version 0.3.4.
pkg:npm/@eslint/plugin-kit
Vulnerability advisories affecting package pkg:npm/@eslint/plugin-kit. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-xffm-g5w8-qvg7 | - | LOW | @eslint/plugin-kit is vulnerable to Regular Expression Denial of Service attacks through ConfigCommentParser |
| GHSA-7q7g-4xm8-89cq | CVE-2024-21539 | LOW | Regular Expression Denial of Service (ReDoS) in @eslint/plugin-kit |
GHSA-xffm-g5w8-qvg7 at a Glance
How to Fix GHSA-xffm-g5w8-qvg7
To remediate this vulnerability, upgrade all affected @eslint/plugin kit dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @eslint/plugin-kit@0.3.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @eslint/plugin-kit
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-xffm-g5w8-qvg7, inspect your project dependencies using npm:
npm ls @eslint/plugin-kit
Analyze the terminal output to locate any version of @eslint/plugin kit in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.3.4), your application is affected.
Note: The npm ls @eslint/plugin-kit command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-1333: Inefficient Regular Expression Complexity, where the product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential. In @eslint/plugin kit, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-xffm-g5w8-qvg7 Affected @eslint/plugin kit Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@eslint/plugin-kit
|
npm |
< 0.3.4
|
0.3.4
|
References
Frequently Asked Questions
What is GHSA-xffm-g5w8-qvg7?
Which @eslint/plugin kit versions are affected?
What version fixes GHSA-xffm-g5w8-qvg7?
Is @eslint/plugin-kit affected?
What CWE is associated with GHSA-xffm-g5w8-qvg7?
How can I check npm dependencies for GHSA-xffm-g5w8-qvg7?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xffm-g5w8-qvg7",
"modified" : "2025-07-28T17:34:44Z",
"published" : "2025-07-18T20:39:12Z",
"aliases" : [ ],
"summary" : "@eslint/plugin-kit is vulnerable to Regular Expression Denial of Service attacks through ConfigCommentParser",
"details" : "### Summary\n\nThe `ConfigCommentParser#parseJSONLikeConfig` API is vulnerable to a Regular Expression Denial of Service (ReDoS) attack in its only argument.\n\n### Details\n\nThe regular expression at [packages/plugin-kit/src/config-comment-parser.js:158](https://github.com/eslint/rewrite/blob/bd4bf23c59f0e4886df671cdebd5abaeb1e0d916/packages/plugin-kit/src/config-comment-parser.js#L158) is vulnerable to a quadratic runtime attack because the grouped expression is not anchored. This can be solved by prepending the regular expression with `[^-a-zA-Z0-9/]`.\n\n### PoC\n\n```javascript\nconst { ConfigCommentParser } = require(\"@eslint/plugin-kit\");\n\nconst str = `${\"A\".repeat(1000000)}?: 1 B: 2`;\n\nconsole.log(\"start\")\nvar parser = new ConfigCommentParser();\nconsole.log(parser.parseJSONLikeConfig(str));\nconsole.log(\"end\")\n\n// run `npm i @eslint/plugin-kit@0.3.3` and `node attack.js`\n// then the program will stuck forever with high CPU usage\n```\n\n### Impact\n\nThis is a Regular Expression Denial of Service attack which may lead to blocking execution and high CPU usage.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@eslint/plugin-kit"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.3.4"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/eslint/rewrite/security/advisories/GHSA-xffm-g5w8-qvg7"
}, {
"type" : "WEB",
"url" : "https://github.com/eslint/rewrite/commit/b283f64099ad6c6b5043387c091691d21b387805"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/eslint/rewrite"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1333" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2025-07-18T20:39:12Z",
"nvd_published_at" : null
}
}