Vulnerabilities in pkg:npm/eslint

PACKAGE
Advisory Identifier: GHSA-p5wg-g6qr-c7cg
Advisory Summary

CVE-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.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/eslint

2 Known Advisory Record(s)

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

CVE Identifier CVE-2025-50537
GHSA Identifier GHSA-p5wg-g6qr-c7cg
Severity MODERATE
CVSS v3.1 Base Score 5.5
CWE Classification CWE-674: Uncontrolled Recursion
Affected Product Withdrawn Advisory
Package Ecosystem npm
Published Date
Last Updated

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).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (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.

eslint fixed: 9.26.0
npm install eslint@9.26.0
Verify Direct and Transitive Dependencies

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

## Withdrawn Advisory This advisory has been withdrawn because RuleTester is used for testing rules during development and results in a error rather than crashing the application. ## Original Description 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.

CVE-2025-50537 Affected Withdrawn Advisory Versions

1 component(s)
Fixed Versions:
9.26.0
Product / Package Ecosystem Affected Versions Fixed Version
eslint
npm
< 9.26.0
9.26.0

References

Frequently Asked Questions

What is CVE-2025-50537?
CVE-2025-50537 is a security vulnerability in Withdrawn Advisory involving eslint has a Stack Overflow when serializing objects with circular references under CWE-674: Uncontrolled Recursion.
Which Withdrawn Advisory versions are affected?
Affected versions include releases prior to 9.26.0 across affected packages: eslint.
What version fixes CVE-2025-50537?
Upgrading to 9.26.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is eslint affected?
Yes, eslint is affected in releases prior to 9.26.0. Upgrade your dependency to 9.26.0 or later.
What is the CVSS score of CVE-2025-50537?
CVE-2025-50537 has a CVSS v3.1 base score of 5.5 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2025-50537?
CVE-2025-50537 is classified under CWE-674: Uncontrolled Recursion (The product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack.).
How can I check npm dependencies for CVE-2025-50537?
Run the dependency tree command: 'npm ls eslint'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}