CVE-2026-93687: Braces Denial of Service Vulnerability

HIGH
Advisory Identifier: GHSA-vfj7-8cjw-p6xm
CVSS 7.5
CWE-674
Published
Advisory Summary

CVE-2026-93687 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-674: Uncontrolled Recursion) affecting Braces libraries in the npm ecosystem. The issue involves braces vulnerable to stack-exhaustion denial of service through deeply nested patterns. Remediation is available in the latest vendor maintenance releases.

CVE-2026-93687 at a Glance

CVE Identifier CVE-2026-93687
GHSA Identifier GHSA-vfj7-8cjw-p6xm
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-674: Uncontrolled Recursion
Affected Product Braces
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2026-93687

To remediate this vulnerability, upgrade all affected Braces dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

braces fixed: Latest secure release
npm install braces@Latest secure release
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 braces

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-93687, inspect your project dependencies using npm:

npm ls braces

Analyze the terminal output to locate any version of Braces in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The npm ls braces 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 Braces, 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

braces through 3.0.3 contains a stack overflow vulnerability in the recursive AST walkers that lack depth guards. Attackers can supply deeply nested brace patterns under the character limit to exhaust the call stack and terminate the Node.js process with an uncaught RangeError.

CVE-2026-93687 Affected Braces Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
braces
npm
≤ 3.0.3

References

Frequently Asked Questions

What is CVE-2026-93687?
CVE-2026-93687 is a security vulnerability in Braces involving braces vulnerable to stack-exhaustion denial of service through deeply nested patterns under CWE-674: Uncontrolled Recursion.
Which Braces versions are affected?
Affected versions include releases prior to current release patches across affected packages: braces.
What version fixes CVE-2026-93687?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is braces affected?
Yes, braces is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2026-93687?
CVE-2026-93687 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2026-93687?
CVE-2026-93687 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-2026-93687?
Run the dependency tree command: 'npm ls braces'. 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-vfj7-8cjw-p6xm",
  "modified" : "2026-10-02T22:36:33Z",
  "published" : "2026-09-18T18:31:41Z",
  "aliases" : [ "CVE-2026-93687" ],
  "summary" : "braces vulnerable to stack-exhaustion denial of service through deeply nested patterns",
  "details" : "braces through 3.0.3 contains a stack overflow vulnerability in the recursive AST walkers that lack depth guards. Attackers can supply deeply nested brace patterns under the character limit to exhaust the call stack and terminate the Node.js process with an uncaught RangeError.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "braces"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "3.0.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-93687"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/micromatch/braces/issues/70"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/micromatch/braces"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/micromatch/braces/blob/3.0.3/lib/compile.js#L49-L53"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/micromatch/braces/blob/3.0.3/lib/expand.js#L102-L105"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/micromatch/braces/blob/3.0.3/lib/parse.js#L38-L40"
  }, {
    "type" : "WEB",
    "url" : "https://www.vulncheck.com/advisories/braces-through-3.0.3-stack-overflow-via-deeply-nested-patterns"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-674" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-10-02T22:36:33Z",
    "nvd_published_at" : "2026-09-18T16:17:15Z"
  }
}