Vulnerability
CVE-2026-54133
jmespath.php allows users to use JMESPath, software for declaratively specifying how to extract elements from a JSON document, in PHP applications with PHP data structures. Versions prior to 2.9.1 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. The issue is patched in `2.9.1` and later. As a workaround, disable `JP_PHP_COMPILE` and do not use `JmesPath\CompilerRuntime` with attacker-controlled expressions. Use the default `AstRuntime` for untrusted expressions. Applications that must continue accepting untrusted JMESPath expressions before upgrading should ensure those expressions are never evaluated by the compiler runtime.
23 advisories report this vulnerability, across 3 ecosystems.
Advisories
- CGA-23xh-v8mw-q2fc
- CGA-2p9j-wv9p-3qcp
- CGA-34wm-5mqr-6xhc
- CGA-4wpp-94wg-g9q9
- CGA-5jc3-68fj-2c55
- CGA-84wg-qxw3-v3mg
- CGA-8hwh-j3q6-jp52
- CGA-8vwx-4x7p-5x6m
- CGA-ccph-jq25-6vrc
- CGA-cr84-cgwh-v69c
- CGA-f5m5-hw59-f3p6
- CGA-fm76-82v3-f4g8
- CGA-j4ph-jjvw-2qv9
- CGA-m2j6-v6v8-cj8q
- CGA-pg4h-3vcf-hgjg
- CGA-pgv3-j5gw-gh6w
- CGA-v6wx-5845-f6v9
- CGA-wcqx-5j99-5px7
- CGA-wmmm-prpx-586m
- CGA-wqvr-fc9w-34qv
- CGA-wxh8-f8xr-9grf
- CGA-xq29-cp32-33jj
-
GHSA-pcw8-m77r-2528
jmespath.php has CompilerRuntime code injection via unescaped function names