Advisory published

XYZ-2026-00080

matrix-js-sdk: a crafted glob pattern can freeze the client

Low severitymatrix-js-sdkfixed in 45.1.0
the timeline of this fixnpm · matrix-js-sdk · dates in UTC

Flagged 2 hours before the advisory

CyberXYZ reads the changes made to a package's source code. We spotted this security fix on 10 Nov 2026. The maintainers' advisory (GHSA-jx97-gwvc-pfxx) followed 2 hours later.

2 hoursfrom our flag to the advisory
  1. CyberXYZ flagged the fix
  2. Advisory published

What was wrong

matrix-js-sdk turns glob patterns from push rules and from m.ignore.invites policy rooms into regular expressions. Some patterns produced an expression with catastrophic backtracking.

Impactlow

Denial of service on the client: evaluating the pattern can occupy the client for a very long time. No data is exposed.

Who is affected

Clients built on matrix-js-sdk 45.0.0 or earlier. The pattern has to come from the user's own homeserver operator, through a push rule in a /sync response, or from an administrator of an m.ignore.invites room the user has subscribed to.

What to do

Upgrade to matrix-js-sdk 45.1.0.

npm install matrix-js-sdk@45.1.0

Published and fixed by the matrix-js-sdk maintainers. Advisory: GHSA-jx97-gwvc-pfxx.

XYZ-2026-00080.json · OSV
{
  "id": "XYZ-2026-00080",
  "summary": "matrix-js-sdk: a crafted glob pattern can freeze the client",
  "aliases": [
    "GHSA-jx97-gwvc-pfxx"
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "npm",
        "name": "matrix-js-sdk"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "45.1.0"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "type": "FIX",
      "url": "https://github.com/matrix-org/matrix-js-sdk/commit/0e5051761823be82aa2fb5625d10e1790da9ef3b"
    }
  ],
  "credits": [
    {
      "name": "CyberXYZ Security Threat Intel Team",
      "contact": [
        "https://cyberxyz.io"
      ],
      "type": "ANALYST"
    }
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-1333"
    ]
  }
}

An excerpt of this record in the OSV format, for tools that read advisories. The full record as JSON.

The bug was found and fixed by the package's maintainers. CyberXYZ flagged the fix in the source and recorded the release that carries it. All CyberXYZ Advisories · The matrix-js-sdk report


Think this record is wrong? Tell us; we respond within 2 business days.