{"id":"CVE-2025-50537","aliases":["CVE-2025-50537","GHSA-p5wg-g6qr-c7cg"],"related":[],"kind":"vulnerability","state":"published","title":"Stack overflow vulnerability in eslint before 9.26.0 when serializing objects with circular references in eslint/lib/shared/serialization.j…","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"## Withdrawn Advisory\nThis advisory has been withdrawn because RuleTester is used for testing rules during development and results in a error rather than crashing the application.\n\n## Original Description\n\nThere 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Vulnerabilidad de desbordamiento de pila en eslint anterior a la 9.26.0 al serializar objetos con referencias circulares en eslint/lib/shared/serialization.js. El exploit se activa a través del método RuleTester.run(), que valida los casos de prueba y busca duplicados. Durante la validación, se llama a la función interna checkDuplicateTestCase(), que a su vez utiliza la función isSerializable() para las comprobaciones de serialización. Cuando se pasa un objeto con referencia circular, isSerializable() entra en recursión infinita, lo que finalmente causa un desbordamiento de pila.","source":"nvd"}],"published":"2026-01-26T00:00:00.000Z","modified":"2026-09-10T03:50:33.506Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-674"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"9.26.0"}],"ecosystem":"npm","package":"eslint","purl":"pkg:npm/eslint","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"9.26.0"}],"vendor":"openjsf","product":"eslint","cpe":"cpe:2.3:a:openjsf:eslint:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/eslint/eslint/issues/19646","tags":["exploit","issue-tracking","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://gist.github.com/lyyffee/2ee1815e5c2da82c05e9838b9bfefbbc","tags":["third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-50537","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/eslint/eslint/commit/d683aebc8e0792e4f80bd1488c705c90f22c317e","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/eslint/eslint","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-01-26T16:14:54.137Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-50537","url":"https://www.cve.org/CVERecord?id=CVE-2025-50537","licence":"CVE Terms of Use","modified":"2026-01-26T16:16:34.731Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-p5wg-g6qr-c7cg","url":"https://github.com/advisories/GHSA-p5wg-g6qr-c7cg","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:33.506Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-50537","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-50537","licence":"Public domain","modified":"2026-06-17T09:35:09.353Z"}],"updatedAt":"2026-11-25T22:59:10.864Z","epss":{"score":0.002,"percentile":0.10466,"date":"2026-12-01T12:00:22.000Z"}}