Read the docs
TI-2025-43708 Aliases GHSA-xffm-g5w8-qvg7

@eslint/plugin-kit is vulnerable to Regular Expression Denial of Service attacks through ConfigCommentParser

Priority LOW 38CWE-1333Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
Denial of service
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub. Impact type from CWE-1333.

Summary

### Summary The `ConfigCommentParser#parseJSONLikeConfig` API is vulnerable to a Regular Expression Denial of Service (ReDoS) attack in its only argument. ### Details The 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/]`. ### PoC ```javascript const { ConfigCommentParser } = require("@eslint/plugin-kit"); const str = `${"A".repeat(1000000)}?: 1 B: 2`; console.log("start") var parser = new ConfigCommentParser(); console.log(parser.parseJSONLikeConfig(str)); console.log("end") // run `npm i @eslint/[email protected]` and `node attack.js` // then the program will stuck forever with high CPU usage ``` ### Impact This is a Regular Expression Denial of Service attack which may lead to blocking execution and high CPU usage.

Why it matters now

Fix Fixed @eslint/plugin-kit (npm): 0.3.4

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—@eslint/plugin-kit (npm)before 0.3.40.3.4Patch availableGHSA-xffm-g5w8-qvg7
  • @eslint/plugin-kit (npm) Vendor— Affected before 0.3.4 Fixed in 0.3.4 Patch available GHSA-xffm-g5w8-qvg7

Remediation

  • Fix · GHSA-xffm-g5w8-qvg7 @eslint/plugin-kit (npm) Fixed in 0.3.4 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-xffm-g5w8-qvg7

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences