CVE-2026-54133 Details
Description
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.
A code injection vulnerability has been identified in JMESPath.php versions prior to 2.9.1. When the JmesPath\CompilerRuntime is used with an attacker-controlled JMESPath expression, the compiler can generate and execute malicious PHP code. This occurs because the compiler improperly escapes JMESPath function names, allowing executable PHP to be injected into a generated cache file that is subsequently executed by the compiler runtime. The vulnerability is present in the mtdowling/jmespath.php package.
Users are advised to upgrade to JMESPath.php version 2.9.1 or later. If an immediate upgrade is not possible, disable 'JP_PHP_COMPILE' and avoid using 'JmesPath\CompilerRuntime' with untrusted expressions. The default 'AstRuntime' can be used for untrusted expressions. Applications that need to accept untrusted JMESPath expressions before upgrading should ensure those expressions are not evaluated by the compiler runtime.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 12, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/jmespath/jmespath.php/security/advisories/GHSA-pcw8-m77r-2528 | CISA-ADP | MitigationVendor Advisory |
| https://github.com/jmespath/jmespath.php/security/advisories/GHSA-pcw8-m77r-2528 | [email protected] | MitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-116 | Improper Encoding or Escaping of Output | [email protected] |
| CWE-20 | Improper Input Validation | [email protected] |
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| jmespath jmespath | < 2.9.1 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 15, 2026 | Initial Analysis | [email protected] |
| Jun 12, 2026 | CVE Modified | CISA-ADP |
| Jun 12, 2026 | New CVE Received | [email protected] |