CVE-2025-50537

Medium

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.

SeverityMedium
CVSS5.5
Exploit probability—
ProductOpenjsf Eslint
PublishedJan 26, 2026
First seenJan 26, 2026
Weakness typeCWE-674CWE-674

How to fix

Update
  • openjsf eslint9.26.0 or later
  • eslint9.26.0 or later

Affected products

ProductAffected versionsFixed in
openjsf eslintv < 9.26.09.26.0
eslintnpmv < 9.26.09.26.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.