Skip to content
Heist/ feed
Back to feed
Medium

eslint — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2025-50537

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.

Products
eslint
Affected versions
5.0.1~dfsg-4build2, 5.0.1~dfsg-4build3, 5.16.0~dfsg+~4.16.8-5, 5.16.0~dfsg+~4.16.8-6, 5.16.0~dfsg+~4.16.8-7, 5.16.0~dfsg+~4.16.8-8, 6.4.0~dfsg+~6.1.9-11build3, 6.4.0~dfsg+~6.1.9-12, 6.4.0~dfsg+~6.1.9-13, 6.4.0~dfsg+~6.1.9-14, 6.4.0~dfsg+~6.1.9-2, 6.4.0~dfsg+~6.1.9-7
Fixed versions
Not specified
CVEs
CVE-2025-50537
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:33 UTC · Revision 1

Source evidence

UBUNTU-CVE-2025-50537

core-osv · Original source

Published 26 Jan 2026, 16:15 UTC

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.

osv:UBUNTU-CVE-2025-50537

eslint

Fixed versions: Not specified

eslint

Fixed versions: Not specified

eslint

Fixed versions: Not specified

eslint

Fixed versions: Not specified

eslint

Fixed versions: Not specified

eslint

Fixed versions: Not specified

Complete source record
{
  "id": "51ede5a87527cac16339f8547fa5616eb3d6fc354a2ff5cd360e6ccdd31b0503",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2025-50537",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2025-50537",
    "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.",
    "evidence": "osv:UBUNTU-CVE-2025-50537",
    "products": [
      {
        "name": {
          "value": "eslint",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "5.0.1~dfsg-4build2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "5.0.1~dfsg-4build3",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "eslint",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "5.16.0~dfsg+~4.16.8-5",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "5.16.0~dfsg+~4.16.8-6",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "5.16.0~dfsg+~4.16.8-7",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "5.16.0~dfsg+~4.16.8-8",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "6.4.0~dfsg+~6.1.9-2",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "eslint",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "6.4.0~dfsg+~6.1.9-7",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "6.4.0~dfsg+~6.1.9-11build3",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "eslint",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "6.4.0~dfsg+~6.1.9-12",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "eslint",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "6.4.0~dfsg+~6.1.9-12",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "6.4.0~dfsg+~6.1.9-13",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "6.4.0~dfsg+~6.1.9-14",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "eslint",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "6.4.0~dfsg+~6.1.9-12",
            "evidence": "/affected/5/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2025-50537",
      "aliases": [
        "UBUNTU-CVE-2025-50537"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "eslint",
            "purl": "pkg:deb/ubuntu/eslint?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "5.0.1~dfsg-4build2",
            "5.0.1~dfsg-4build3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-50537.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "eslint",
                "binary_version": "5.0.1~dfsg-4build3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "eslint",
            "purl": "pkg:deb/ubuntu/eslint?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "5.16.0~dfsg+~4.16.8-5",
            "5.16.0~dfsg+~4.16.8-6",
            "5.16.0~dfsg+~4.16.8-7",
            "5.16.0~dfsg+~4.16.8-8",
            "6.4.0~dfsg+~6.1.9-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-50537.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "eslint",
                "binary_version": "6.4.0~dfsg+~6.1.9-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "eslint",
            "purl": "pkg:deb/ubuntu/eslint?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "6.4.0~dfsg+~6.1.9-7",
            "6.4.0~dfsg+~6.1.9-11build3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-50537.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "eslint",
                "binary_version": "6.4.0~dfsg+~6.1.9-11build3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "eslint",
            "purl": "pkg:deb/ubuntu/eslint?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "6.4.0~dfsg+~6.1.9-12"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-50537.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "eslint",
                "binary_version": "6.4.0~dfsg+~6.1.9-12"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "eslint",
            "purl": "pkg:deb/ubuntu/eslint?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "6.4.0~dfsg+~6.1.9-12",
            "6.4.0~dfsg+~6.1.9-13",
            "6.4.0~dfsg+~6.1.9-14"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-50537.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "eslint",
                "binary_version": "6.4.0~dfsg+~6.1.9-14"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "eslint",
            "purl": "pkg:deb/ubuntu/eslint?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "6.4.0~dfsg+~6.1.9-12"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-50537.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "eslint",
                "binary_version": "6.4.0~dfsg+~6.1.9-12"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:57:06.129139644Z",
      "provider": "osv",
      "upstream": [
        "CVE-2025-50537"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2025-50537",
        "https://www.cve.org/CVERecord?id=CVE-2025-50537",
        "https://github.com/eslint/eslint/issues/19646",
        "https://gist.github.com/lyyffee/2ee1815e5c2da82c05e9838b9bfefbbc"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2025-50537",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 356719,
  "published_at": "2026-01-26T16:15:00+00:00"
}