Low, CVSS 2.3npmAmendedPublished
@eslint/plugin-kit is vulnerable to Regular Expression Denial of Service attacks through ConfigCommentParser
GHSA-xffm-g5w8-qvg7
- Affected
- npm @eslint/plugin-kit < 0.3.4
- Fixed in
- 0.3.4· Vendor fix available
- Issue
- 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 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 Impact This is a Regular Expression Denial of Service attack which may lead to blocking execution and high CPU usage.
Recommended action: Upgrade to 0.3.4 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.