Vulnerabilities in pkg:npm/eslint
PACKAGECVE-2025-50537 is a MODERATE (CVSS 5.5) eslint has a stack overflow vulnerability (CWE-674: Uncontrolled Recursion) affecting Withdrawn Advisory libraries in the npm ecosystem. The issue involves eslint has a stack overflow when serializing objects with circular references. Remediation is available by upgrading affected packages to version 9.26.0.
pkg:npm/eslint
Vulnerability advisories affecting package pkg:npm/eslint. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-p5wg-g6qr-c7cg | CVE-2025-50537 | MODERATE | Withdrawn Advisory: eslint has a Stack Overflow when serializing objects with circular references |
| GHSA-jcgq-xh2f-2hfm | - | MODERATE | Regular Expression Denial of Service |
CVE-2025-50537 at a Glance
Security Impact
CVSS: 5.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H).
How to Fix CVE-2025-50537
To remediate this vulnerability, upgrade all affected Withdrawn Advisory dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install eslint@9.26.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls eslint
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2025-50537, inspect your project dependencies using npm:
npm ls eslint
Analyze the terminal output to locate any version of Withdrawn Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 9.26.0), your application is affected.
Note: The npm ls eslint command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-674: Uncontrolled Recursion, where the product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack. In Withdrawn Advisory, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-50537 Affected Withdrawn Advisory Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
eslint
|
npm |
< 9.26.0
|
9.26.0
|
References
Frequently Asked Questions
What is CVE-2025-50537?
Which Withdrawn Advisory versions are affected?
What version fixes CVE-2025-50537?
Is eslint affected?
What is the CVSS score of CVE-2025-50537?
What CWE is associated with CVE-2025-50537?
How can I check npm dependencies for CVE-2025-50537?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-p5wg-g6qr-c7cg",
"modified" : "2026-02-03T17:43:56Z",
"published" : "2026-01-26T18:31:29Z",
"withdrawn" : "2026-02-03T17:43:56Z",
"aliases" : [ "CVE-2025-50537" ],
"summary" : "Withdrawn Advisory: eslint has a Stack Overflow when serializing objects with circular references",
"details" : "## 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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "eslint"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "9.26.0"
} ]
} ]
} ],
"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"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-674" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-01-29T14:58:17Z",
"nvd_published_at" : "2026-01-26T16:15:58Z"
}
}