jmespath.php has CompilerRuntime code injection via unescaped function names
Critical severity. Published 18 August 2026. Update mtdowling/jmespath.php to 2.9.1 or later: composer update mtdowling/jmespath.php.
Which versions are affected?
| Package | Affected versions | Fixed in |
|---|---|---|
| mtdowling/jmespath.php (opens in a new tab) | < 2.9.1 | 2.9.1 |
What should you do?
Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:
composer show mtdowling/jmespath.php
composer auditAdvisory details
| Severity | CriticalCVSS 9.8 |
|---|---|
| Published | |
| Updated | |
| CVE | CVE-2026-54133 (opens in a new tab) |
| GHSA | GHSA-pcw8-m77r-2528 (opens in a new tab) |
| Weakness | CWE-20, CWE-94, CWE-116 |
What the advisory says
Impact
mtdowling/jmespath.php can generate and execute attacker-controlled PHP code when JmesPath\CompilerRuntime is used with an attacker-controlled JMESPath expression. The compiler emits parsed JMESPath function names into generated PHP source without sufficient escaping. A crafted expression can cause the generated cache file to contain executable attacker-controlled PHP, which is then loaded by the compiler runtime.
A vulnerable flow is:
1. An application accepts or constructs a JMESPath expression using attacker-controlled input. 2. The expression is evaluated with JmesPath\CompilerRuntime, or with JmesPath\search() while JPPHPCOMPILE is enabled. 3.
Source: GHSA-pcw8-m77r-2528 (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .