n/a · Vulnerability
cve-program · CVE-2025-50537
PublishedStack 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.
Read the publisher's advisoryeuvd · EUVD-2025-206359
PublishedStack 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.
Read the publisher's advisorynvd · CVE-2025-50537
PublishedStack 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.
Read the publisher's advisoryosv · GHSA-p5wg-g6qr-c7cg
Withdrawn## 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.
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2025-50537 · CVE overview and exploitation status
cve-program · CVE-2025-50537
- https://github.com/eslint/eslint/issues/19646
- https://gist.github.com/lyyffee/2ee1815e5c2da82c05e9838b9bfefbbc
euvd · EUVD-2025-206359
- https://github.com/eslint/eslint/issues/19646
- https://gist.github.com/lyyffee/2ee1815e5c2da82c05e9838b9bfefbbc
nvd · CVE-2025-50537
- https://gist.github.com/lyyffee/2ee1815e5c2da82c05e9838b9bfefbbc
- https://github.com/eslint/eslint/issues/19646
osv · GHSA-p5wg-g6qr-c7cg
Related changes
Linked by CVE identifierNo related changes are available here.