GHSA-P5WG-G6QR-C7CG
Vulnerability from github – Published: 2026-01-26 18:31 – Updated: 2026-01-29 14:58
VLAI?
Summary
eslint has a Stack Overflow when serializing objects with circular references
Details
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.
Severity ?
5.5 (Medium)
{
"affected": [
{
"package": {
"ecosystem": "npm",
"name": "eslint"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "9.26.0"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2025-50537"
],
"database_specific": {
"cwe_ids": [
"CWE-674"
],
"github_reviewed": true,
"github_reviewed_at": "2026-01-29T14:58:17Z",
"nvd_published_at": "2026-01-26T16:15:58Z",
"severity": "MODERATE"
},
"details": "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.",
"id": "GHSA-p5wg-g6qr-c7cg",
"modified": "2026-01-29T14:58:17Z",
"published": "2026-01-26T18:31:29Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-50537"
},
{
"type": "WEB",
"url": "https://github.com/eslint/eslint/issues/19646"
},
{
"type": "WEB",
"url": "https://github.com/eslint/eslint/commit/d683aebc8e0792e4f80bd1488c705c90f22c317e"
},
{
"type": "WEB",
"url": "https://gist.github.com/lyyffee/2ee1815e5c2da82c05e9838b9bfefbbc"
},
{
"type": "PACKAGE",
"url": "https://github.com/eslint/eslint"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H",
"type": "CVSS_V3"
}
],
"summary": "eslint has a Stack Overflow when serializing objects with circular references"
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…