Stack Overflow Vulnerability in ESLint: Circular Reference Serialization Issue

eslint Updated 29 Jan 2026

Summary

26/01/2026
MODERATE
Yes i
Moderate
5.5

GHSA-p5wg-g6qr-c7cg: eslint has a Stack Overflow when serializing objects with circular references. Affects eslint versions < 9.26.0. Fixed in 9.26.0. 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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

ESLint is a widely-used open-source JavaScript linting utility that helps developers identify and fix problems in their JavaScript code. It provides a pluggable architecture, allowing users to create custom rules and configurations. However, prior to version 9.26.0, ESLint had a vulnerability that could lead to a Stack Overflow error when serializing objects with circular references, particularly during the validation of test cases.

Vulnerability Detail

The vulnerability arises from the RuleTester.run() method in ESLint, which is responsible for validating test cases and checking for duplicates. When an object with circular references is passed to the isSerializable() function during this process, it triggers infinite recursion, ultimately resulting in a Stack Overflow. This can lead to application crashes or denial of service, making it a significant concern for developers relying on ESLint for code quality.

How To Fix

Minimum fixed version

9.26.0

This is the first release that contains the fix.

npm install eslint@9.26.0

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

Workaround

As a temporary workaround, avoid passing objects with circular references to the RuleTester.run() method until you can update to the patched version of ESLint. If you must test such objects, consider restructuring them to eliminate circular references.

Conclusion

The Stack Overflow vulnerability in ESLint due to circular reference serialization is a significant issue that can lead to application crashes. It is crucial for developers to update to version 9.26.0 or later to mitigate this risk. Additionally, using tools like Vulert can help monitor and manage open-source vulnerabilities effectively.

See every vulnerability recorded for eslint →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 5.5, indicating a moderate severity level.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without requiring any signup.

Circular references occur when an object references itself directly or indirectly, creating a loop in the object graph. This can complicate serialization and lead to issues like Stack Overflow.

If you cannot update ESLint right away, avoid using circular reference objects in your test cases as a temporary measure until you can apply the update.

You can find more information about ESLint, including documentation and updates, on its official website at https://eslint.org.

Related vulnerabilities

Recent vulnerabilities recorded for eslint.

How To Fix

Minimum fixed version

9.26.0

This is the first release that contains the fix.

npm install eslint@9.26.0

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