CVE-2025-50537
Withdrawn Advisory: eslint has a Stack Overflow when serializing objects with circular references
Impact
## 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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | eslint | < 9.26.0 | 9.26.0 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Openjsf | Eslint | before 9.26.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://gist.github.com/lyyffee/2ee1815e5c2da82c05e9838b9bfefbbc
- https://github.com/eslint/eslint/issues/19646
- https://github.com/advisories/GHSA-p5wg-g6qr-c7cg
- https://nvd.nist.gov/vuln/detail/CVE-2025-50537
- https://github.com/eslint/eslint/commit/d683aebc8e0792e4f80bd1488c705c90f22c317e