CVE-2025-50537
MEDIUM 5.5CVSS 3.1Withdrawn Advisory: eslint has a Stack Overflow when serializing objects with circular references
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.
- Published
- 26 Jan 2026
- Last modified
- 10 Sep 2026
- Assigned by
- cve@mitre.org
- NVD status
- Analyzed
- Weakness
- CWE-674
- Also known as
- GHSA-p5wg-g6qr-c7cg
- Sources
- NVDJSONOSV GHSA-p5wg-g6qr-c7cgJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | openjsf | eslintcpe:2.3:a:openjsf:eslint:*:*:*:*:*:node.js:*:* |
< 9.26.0 | 9.26.0 |
| OSV | npm | eslint | < 9.26.0 | 9.26.0 |
References
- https://gist.github.com/lyyffee/2ee1815e5c2da82c05e9838b9bfefbbc · Third Party Advisory, WEB
- https://github.com/eslint/eslint/issues/19646 · Exploit, Issue Tracking, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-50537 · ADVISORY
- https://github.com/eslint/eslint/commit/d683aebc8e0792e4f80bd1488c705c90f22c317e · WEB
- https://github.com/eslint/eslint · PACKAGE
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 26 Jan 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 26 Jan 2026)