# CVE-2025-50537: Stack overflow vulnerability in eslint before 9.26.0 when serializing objects with circular references in eslint/lib/shared/serialization.j…

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-01-26T00:00:00.000Z
- Modified: 2026-09-10T03:50:33.506Z
- Also known as: GHSA-p5wg-g6qr-c7cg
- Weaknesses: CWE-674
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- eslint (npm): before 9.26.0
- openjsf eslint: before 9.26.0

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`

## References

- <https://github.com/eslint/eslint/issues/19646> (exploit, issue-tracking, third-party-advisory, web)
- <https://gist.github.com/lyyffee/2ee1815e5c2da82c05e9838b9bfefbbc> (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)

## Sources

- CVE List: [CVE-2025-50537](https://www.cve.org/CVERecord?id=CVE-2025-50537), CVE Terms of Use, modified 2026-01-26
- GitHub Advisory Database: [GHSA-p5wg-g6qr-c7cg](https://github.com/advisories/GHSA-p5wg-g6qr-c7cg), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-50537](https://nvd.nist.gov/vuln/detail/CVE-2025-50537), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-50537 · Whole record: https://cve.day/CVE-2025-50537.json · Rebuilt by cve.day 2026-11-25T22:59:10.864Z
