{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "4.0.0"
              },
              {
                "fixed": "5.0.5"
              }
            ]
          },
          "events": [
            {
              "introduced": "6a39bdddcf944374b475d99b0e8292d3727c7ebe"
            },
            {
              "fixed": "87939017c6cb6be56b98c6fa2059b073315cd534"
            }
          ],
          "repo": "https://github.com/juliangruber/brace-expansion",
          "type": "GIT"
        },
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "3.0.0"
              },
              {
                "fixed": "3.0.2"
              }
            ]
          },
          "events": [
            {
              "introduced": "b01a637b0578a7c59acc7d8386f11f8d0710b512"
            },
            {
              "fixed": "67ff947eb70ec5d57961f9e09b205487498fc4ed"
            }
          ],
          "repo": "https://github.com/juliangruber/brace-expansion",
          "type": "GIT"
        },
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "2.0.0"
              },
              {
                "fixed": "2.0.3"
              }
            ]
          },
          "events": [
            {
              "introduced": "0b6a022491103b806770bc037654744bef3e63be"
            },
            {
              "fixed": "73b5459d2ab973c984d01324769d306f66440c7e"
            }
          ],
          "repo": "https://github.com/juliangruber/brace-expansion",
          "type": "GIT"
        },
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "fixed": "1.1.13"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "6c353caf23beb9644f858eb3fe38d43a68b82898"
            }
          ],
          "repo": "https://github.com/juliangruber/brace-expansion",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-f886-m6hf-6m8v"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-400"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/33xxx/CVE-2026-33750.json"
  },
  "details": "The brace-expansion library generates arbitrary strings containing a common prefix and suffix. Prior to versions 5.0.5, 3.0.2, 2.0.3, and 1.1.13, a brace pattern with a zero step value (e.g., `{1..2..0}`) causes the sequence generation loop to run indefinitely, making the process hang for seconds and allocate heaps of memory. Versions 5.0.5, 3.0.2, 2.0.3, and 1.1.13 fix the issue. As a workaround, sanitize strings passed to `expand()` to ensure a step value of `0` is not used.",
  "id": "CVE-2026-33750",
  "modified": "2026-04-01T23:09:47.680842128Z",
  "published": "2026-03-27T14:04:52.297Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/33xxx/CVE-2026-33750.json"
    },
    {
      "type": "WEB",
      "url": "https://github.com/juliangruber/brace-expansion/blob/daa71bcb4a30a2df9bcb7f7b8daaf2ab30e5794a/src/index.ts#L107-L113"
    },
    {
      "type": "WEB",
      "url": "https://github.com/juliangruber/brace-expansion/blob/daa71bcb4a30a2df9bcb7f7b8daaf2ab30e5794a/src/index.ts#L184"
    },
    {
      "type": "FIX",
      "url": "https://github.com/juliangruber/brace-expansion/commit/311ac0d54994158c0a384e286a7d6cbb17ee8ed5"
    },
    {
      "type": "FIX",
      "url": "https://github.com/juliangruber/brace-expansion/commit/7fd684f89fdde3549563d0a6522226a9189472a2"
    },
    {
      "type": "FIX",
      "url": "https://github.com/juliangruber/brace-expansion/commit/b9cacd9e55e7a1fa588fe4b7bb1159d52f1d902a"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/juliangruber/brace-expansion/issues/98"
    },
    {
      "type": "FIX",
      "url": "https://github.com/juliangruber/brace-expansion/pull/95"
    },
    {
      "type": "FIX",
      "url": "https://github.com/juliangruber/brace-expansion/pull/96"
    },
    {
      "type": "FIX",
      "url": "https://github.com/juliangruber/brace-expansion/pull/97"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/juliangruber/brace-expansion/security/advisories/GHSA-f886-m6hf-6m8v"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-33750"
    }
  ],
  "schema_version": "1.7.3",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "brace-expansion: Zero-step sequence causes process hang and memory exhaustion"
}