Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. eslint
  4. ›
  5. CVE-2025-50537

CVE-2025-50537: Withdrawn Advisory: eslint has a Stack Overflow when serializing objects with circular references

January 26, 2026 (updated February 3, 2026)

Withdrawn Advisory

This advisory has been withdrawn because RuleTester is used for testing rules during development and results in a error rather than crashing the application.

Original Description

There is a Stack Overflow vulnerability in eslint before 9.26.0 when serializing objects with circular references in eslint/lib/shared/serialization.js. The exploit is triggered via the RuleTester.run() method, which validates test cases and checks for duplicates. During validation, the internal function checkDuplicateTestCase() is called, which in turn uses the isSerializable() function for serialization checks. When a circular reference object is passed in, isSerializable() enters infinite recursion, ultimately causing a Stack Overflow.

References

  • gist.github.com/lyyffee/2ee1815e5c2da82c05e9838b9bfefbbc
  • github.com/advisories/GHSA-p5wg-g6qr-c7cg
  • github.com/eslint/eslint
  • github.com/eslint/eslint/commit/d683aebc8e0792e4f80bd1488c705c90f22c317e
  • github.com/eslint/eslint/issues/19646
  • nvd.nist.gov/vuln/detail/CVE-2025-50537

Code Behaviors & Features

Detect and mitigate CVE-2025-50537 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 9.26.0

Fixed versions

  • 9.26.0

Solution

Upgrade to version 9.26.0 or above.

Impact 5.5 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-674: Uncontrolled Recursion

Source file

npm/eslint/CVE-2025-50537.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 04 Feb 2026 00:36:15 +0000.