cargo package report

Is pest_grammars safe?

1 known vulnerability, worst severity LOW.

// reach

0 direct dependencies

none carry a known advisory

    0 packages depend on it

    an advisory here reaches each of them

      Create a free accountfor every dependency path, dependent and what to upgrade
      // ai model usage

      Tracked for PyPI packages. HuggingFace models declare Python dependencies, so cargo packages are not covered.


      cvss
      0.0
      low

      severity band, no base score published

      epss
      not scored

      chance of exploitation in 30 days

      xyz score
      0.0
      low

      CyberXYZ composite out of 10

      fig. 01 — GHSA-7632-4q2x-hvjw, the advisory selected below

      // 1 advisories

      GHSA-7632-4q2x-hvjw

      LOW
      // impact

      In affected versions, parsing deeply nested input with pestgrammars::json::JsonParser can exhaust the native stack and abort the hosting process. Applications that accept attacker-controlled JSON without suitable resource limits may therefore be vulnerable to denial of service.

      The reported reproduction demonstrates this behavior with deeply nested JSON arrays. The nesting required to trigger an overflow depends on the platform, available stack space, and build configuration; there is no portable safe nesting threshold.

      // patches

      Upgrade to pestgrammars 2.9.3 or later.

      Version 2.9.3 requires the updated pest runtime and includes regression tests for deeply nested JSON with the optional call budget disabled. Supported std builds automatically check available native stack headroom at parser checkpoints and return a handled stack limit reached error when insufficient space is detected. This protection operates independently of pest::setcalllimit(). See the 2.9.3 dependencies and deep-nesting regression tests.

      These checks are best-effort. They do not provide universal stack-overflow protection, apply when stack bounds cannot be determined, or provide native-stack protection in nostd builds.

      // workarounds and defense in depth

      Applications unable to upgrade should reject excessive nesting before invoking the affected parser or configure a suitably conservative pest::setcalllimit() budget. A call budget is not a portable stack-depth guarantee.

      Even after upgrading, applications parsing untrusted input should enforce workload-appropriate input, work, memory, and concurrency limits. Stack checks and call budgets do not enforce elapsed-time deadlines. Where a hard deadline or cancellation is required, use supervised parsing as described in the security policy: Parsing Untrusted Input.


      Checked 2026-10-17 at 07:59 UTC. The most recent advisory here was published 2026-10-16. Updated continuously from NVD, GHSA, OSV and CNA feeds.

      Think a verdict here is wrong? Tell us — we respond within 2 business days.