packagist package report

Is symfony/json-path safe?

1 known vulnerability, worst severity LOW.

// reach

0 direct dependencies

none carry a known advisory

    0 packages depend on it

    dependents not yet indexed for this ecosystem

      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 packagist packages are not covered.


      cvss
      8.2
      high

      CVSS v4.0 base score out of 10; GitHub rates it LOW

      epss
      0.63%
      medium

      chance of exploitation in 30 days, 50th percentile of all CVEs

      xyz score
      1.1
      low

      CyberXYZ composite out of 10

      fig. 01 — GHSA-8v8v-g73j-492j, the advisory selected below

      // 1 advisories

      GHSA-8v8v-g73j-492j

      LOWGitHub ratingCVE-2026-45756
      // description

      The JsonPath component's match() and search() filter functions compile a caller-supplied pattern straight into preg_match():

      'match'  => @preg_match(\sprintf('/^%s$/u', $this->transformJsonPathRegex($argList[1])), $value),
      'search' => @preg_match("/{$this->transformJsonPathRegex($argList[1])}/u", $value),

      transformJsonPathRegex() only performs cosmetic escaping: there is no length cap, no restriction to the RFC 9485 i-regexp subset, and no bound on backtracking. An application that evaluates an attacker-influenced JSONPath expression server-side (e.g. one taken from a query parameter or API field and passed to JsonCrawler) can therefore be made to run a catastrophic-backtracking pattern such as $[?search(@, "(a+)+$")]. Evaluated against a moderately sized document, this pins a CPU core for seconds per request, so a handful of concurrent requests exhausts the worker pool: a denial of service. Because the preg_match() calls are prefixed with @, the PCRE backtrack-limit errors that would otherwise surface are suppressed, leaving no log trace.

      // conditions for exploitation

      An application that evaluates an attacker-influenced JSONPath expression containing a match() / search() filter against any non-trivial JSON input.

      // resolution

      JsonCrawler runs the preg_match() calls through a helper that lowers pcre.backtrack_limit to 10000 for the duration of the call (restoring the previous value afterwards), so a pathological pattern fails fast instead of stalling the worker.

      The patch for this issue is available here for branch 7.4.

      // credits

      Symfony would like to thank Himanshu Anand for reporting the issue and Alexandre Daubois for providing the fix.

      // cvss v4.0 vector

      CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

      Attack vector
      Network
      Attack complexity
      Low
      Attack requirements
      Present
      Privileges required
      None
      User interaction
      None
      Confidentiality (vulnerable system)
      None
      Integrity (vulnerable system)
      None
      Availability (vulnerable system)
      High
      Confidentiality (subsequent systems)
      None
      Integrity (subsequent systems)
      None
      Availability (subsequent systems)
      None

      Checked 2026-11-07 at 13:34 UTC. The most recent advisory here was published 2026-05-28. Updated continuously from NVD, GHSA, OSV and CNA feeds.

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