GHSA-jgvr-6x5w-hx5w: Zoo Design Studio Recursive KCL Parsing Is Vulnerable Vulnerability

MODERATE
CWE-770
Published
Advisory Summary

GHSA-jgvr-6x5w-hx5w is a MODERATE recursive kcl parsing is vulnerable vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Zoo Design Studio libraries in the PyPI ecosystem. The issue involves recursive kcl parsing is vulnerable to denial-of-service. Remediation is available by upgrading affected packages to version 0.3.129.

GHSA-jgvr-6x5w-hx5w at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-jgvr-6x5w-hx5w
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-770: Allocation of Resources Without Limits or Throttling
Affected Product Zoo Design Studio
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix GHSA-jgvr-6x5w-hx5w

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

zoo-kcl fixed: 0.3.129
pip install zoo-kcl>=0.3.129
kcl-lib fixed: 0.3.129
Upgrade kcl-lib to 0.3.129
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show zoo-kcl

How to Check if You Are Affected

To determine whether your Python environment is affected by GHSA-jgvr-6x5w-hx5w, inspect your installed packages using pip:

pip show zoo-kcl

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

Note: The pip show zoo-kcl command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. In Zoo Design Studio, 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

### Impact Feeding a KCL program that wraps an expression in deep, unnecessary parentheses triggers the parser’s recursive `expression` -> `unnecessarily_bracketed` -> `expression` path. With enough nesting, the call stack grows until it exceeds the process stack limit, causing a stack overflow.

GHSA-jgvr-6x5w-hx5w Affected Zoo Design Studio Versions

2 component(s)
Fixed Versions:
0.3.129
Product / Package Ecosystem Affected Versions Fixed Version
zoo-kcl
PyPI
< 0.3.129
0.3.129
kcl-lib
crates.io
< 0.3.129
0.3.129

References

Frequently Asked Questions

What is GHSA-jgvr-6x5w-hx5w?
GHSA-jgvr-6x5w-hx5w is a security vulnerability in Zoo Design Studio involving Recursive KCL parsing is vulnerable to denial-of-service under CWE-770: Allocation of Resources Without Limits or Throttling.
Which Zoo Design Studio versions are affected?
Affected versions include releases prior to 0.3.129 across affected packages: zoo-kcl, kcl-lib.
What version fixes GHSA-jgvr-6x5w-hx5w?
Upgrading to 0.3.129 (or the latest patched release for your respective branch) resolves the vulnerability.
Is zoo-kcl affected?
Yes, zoo-kcl is affected in releases prior to 0.3.129. Upgrade your dependency to 0.3.129 or later.
Is kcl-lib affected?
Yes, kcl-lib is affected in releases prior to 0.3.129. Upgrade your dependency to 0.3.129 or later.
What CWE is associated with GHSA-jgvr-6x5w-hx5w?
GHSA-jgvr-6x5w-hx5w is classified under CWE-770: Allocation of Resources Without Limits or Throttling (The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.).
How can I check PyPI dependencies for GHSA-jgvr-6x5w-hx5w?
Run the dependency tree command: 'pip show zoo-kcl'. 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-jgvr-6x5w-hx5w",
  "modified" : "2026-08-20T18:34:05Z",
  "published" : "2026-08-20T18:34:05Z",
  "aliases" : [ ],
  "summary" : "Zoo Design Studio: Recursive KCL parsing is vulnerable to denial-of-service",
  "details" : "### Impact\nFeeding a KCL program that wraps an expression in deep, unnecessary parentheses triggers the parser’s recursive `expression` -> `unnecessarily_bracketed` -> `expression` path. With enough nesting, the call stack grows until it exceeds the process stack limit, causing a stack overflow.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "zoo-kcl"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.3.129"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "kcl-lib"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.3.129"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "< 0.2.129"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/KittyCAD/modeling-app/security/advisories/GHSA-jgvr-6x5w-hx5w"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/KittyCAD/modeling-app"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-770" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-08-20T18:34:05Z",
    "nvd_published_at" : null
  }
}