Inefficient Algorithmic Complexity Affecting symfony/json-path package, versions >=7.3.0, <7.4.23>=8.0.0, <8.1.11


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.8% (54th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-SYMFONYJSONPATH-23184445
  • published1 Dec 2026
  • disclosed24 Nov 2026
  • creditKamil Vavra

Introduced: 24 Nov 2026

NewCVE-2026-135804  (opens in a new tab)
CWE-407  (opens in a new tab)

How to fix?

Upgrade symfony/json-path to version 7.4.23, 8.1.11 or higher.

Overview

symfony/json-path is an Eases JSON navigation using the JSONPath syntax as described in RFC 9535

Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity via JsonCrawler::find() when evaluating attacker-influenced JSONPath expressions. The prior fix for CVE-2026-45756 lowered pcre.backtrack_limit to 10000 around each preg_match() call in the match() and search() filter functions, but PCRE resets its backtracking counter at every starting position, so an unanchored pattern just under the limit costs one full limit per byte of the subject, and chaining filter clauses multiplies the work. Additionally, the filter evaluator scanned the whole expression for logical operators once per node, causing quadratic growth with the number of chained clauses, and absolute queries starting with $ inside a filter were re-evaluated for every node the filter visits. A document of 2 MB combined with a query of 2.5 KB can consume 3.5 minutes of CPU, holding a PHP worker indefinitely.

CVSS Base Scores

version 4.0
version 3.1