@eslint/plugin-kit Regular Expression Denial of Service Vulnerability

@eslint/plugin-kit Updated 14 Dec 2025

Summary

18/07/2025
LOW
Yes i
Low
2.3

GHSA-xffm-g5w8-qvg7: The ConfigCommentParser#parseJSONLikeConfig API is vulnerable to a Regular Expression Denial of Service (ReDoS) attack in its only argument. Affects @eslint/plugin-kit versions < 0.3.4. Fixed in 0.3.4. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

@eslint/plugin-kit is a package that provides utilities for creating ESLint plugins. It simplifies the process of parsing configuration comments, allowing developers to define rules and configurations easily. However, it has a vulnerability that exposes it to Regular Expression Denial of Service (ReDoS) attacks, which can severely impact application performance.

Vulnerability Detail

The vulnerability lies in the ConfigCommentParser#parseJSONLikeConfig API, which is susceptible to a Regular Expression Denial of Service (ReDoS) attack. The regular expression used in this API is not anchored, leading to a quadratic runtime complexity when processing certain input strings. This can cause the application to hang indefinitely, resulting in high CPU usage and blocking execution. The specific line of code responsible for this issue can be found in the config-comment-parser.js file at line 158.

How To Fix

Latest published version: 0.7.3 as of 23 Oct 2026

npm install @eslint/plugin-kit@0.7.3

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.3.4

This is the first release that contains the fix.

npm install @eslint/plugin-kit@0.3.4

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can modify the regular expression in the ConfigCommentParser#parseJSONLikeConfig method by prepending it with [^-a-zA-Z0-9/]. However, this is not a long-term solution and updating the package is recommended.

Conclusion

The @eslint/plugin-kit package has a critical vulnerability that can lead to Regular Expression Denial of Service attacks. It is essential to update to version 0.3.3 or later to mitigate this risk. Additionally, using tools like Vulert can help monitor your application for such vulnerabilities in real-time.

See every vulnerability recorded for @eslint/plugin-kit →

Share this vulnerability

FAQ

A ReDoS attack exploits the way certain regular expressions are processed, leading to excessive CPU usage and potentially causing the application to become unresponsive.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. By analyzing your package-lock.json file, it can identify if your application is affected. You can also check using the Vulert playground without signup.

If your application is affected, you may notice high CPU usage and unresponsive behavior when processing specific input strings with the vulnerable API.

While this vulnerability primarily affects application performance, it does not directly lead to data loss. However, it can disrupt normal operations and affect user experience.

If you cannot update the package right away, consider implementing the suggested workaround to modify the regular expression. However, plan to update to the patched version as soon as possible.

Related vulnerabilities

Recent vulnerabilities recorded for @eslint/plugin-kit.

How To Fix

Latest published version: 0.7.3 as of 23 Oct 2026

npm install @eslint/plugin-kit@0.7.3

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.3.4

This is the first release that contains the fix.

npm install @eslint/plugin-kit@0.3.4

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback