# jmespath.php has CompilerRuntime code injection via unescaped function names

Critical severity, published 2026-08-18. Update mtdowling/jmespath.php to 2.9.1 or later: composer update mtdowling/jmespath.php.

Canonical URL: https://buzzphp.com/security/ghsa-pcw8-m77r-2528 · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | critical (CVSS 9.8) |
| Published | 2026-08-18 |
| Updated | 2026-08-18 |
| CVE | [CVE-2026-54133](https://nvd.nist.gov/vuln/detail/CVE-2026-54133) |
| GHSA | [GHSA-pcw8-m77r-2528](https://github.com/advisories/GHSA-pcw8-m77r-2528) |
| Weakness | CWE-20, CWE-94, CWE-116 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| mtdowling/jmespath.php | < 2.9.1 | 2.9.1 |

## What to do

Update mtdowling/jmespath.php to 2.9.1 or later: composer update mtdowling/jmespath.php.

Check which version you run with `composer show mtdowling/jmespath.php`, and every affected package with `composer audit`.

## About this advisory

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.

## Links

- [GHSA-pcw8-m77r-2528 on GitHub](https://github.com/advisories/GHSA-pcw8-m77r-2528)
- [CVE-2026-54133 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-54133)
- [All Composer security advisories](https://buzzphp.com/security)
