Summary
Unhandled exception when decoding form response JSON
Workarounds
A plugin may handle DataPacketReceiveEvent, capture ModalFormResponsePacket and run the provided JSON through stupid_json_decode.
Note that this requires copying the body of the function to a plugin, since the function is currently private.
For more information
If you have any questions or comments about this advisory:
- Email us at [email protected]
Impact
When handling form responses from the client (ModalFormResponsePacket), the Minecraft Windows client may send weird JSON that json_decode() can't understand. A workaround for this is implemented in InGamePacketHandler::stupid_json_decode().
An InvalidArgumentException is thrown by this function when it fails to fix an error found in the JSON, which is not caught by the caller. This leads to a server crash.
GHSA-WJFQ-88Q2-R34J has a CVSS score of 7.5 (High). The vector is network-reachable, no privileges required, and no user interaction. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment. A fixed version is available (4.0.7); upgrading removes the vulnerable code path.
Affected versions
Security releases
Kodem intelligence
Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.
Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.
Already deployed Kodem?
See it in your environmentNew to Kodem? Get a demo →Remediation advice
56fe71d939c38fe14e18a31a673a9331bcc0e4ca
Frequently Asked Questions
- What is GHSA-WJFQ-88Q2-R34J? GHSA-WJFQ-88Q2-R34J is a high-severity security vulnerability in pocketmine/pocketmine-mp (composer), affecting versions >= 4.0.0, < 4.0.7. It is fixed in 4.0.7.
- How severe is GHSA-WJFQ-88Q2-R34J? GHSA-WJFQ-88Q2-R34J has a CVSS score of 7.5 (High). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
- Which versions of pocketmine/pocketmine-mp are affected by GHSA-WJFQ-88Q2-R34J? pocketmine/pocketmine-mp (composer) versions >= 4.0.0, < 4.0.7 is affected.
- Is there a fix for GHSA-WJFQ-88Q2-R34J? Yes. GHSA-WJFQ-88Q2-R34J is fixed in 4.0.7. Upgrade to this version or later.
- Is GHSA-WJFQ-88Q2-R34J exploitable, and should I be worried? Whether GHSA-WJFQ-88Q2-R34J is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
- What actually determines whether GHSA-WJFQ-88Q2-R34J is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
- How do I fix GHSA-WJFQ-88Q2-R34J? Upgrade
pocketmine/pocketmine-mpto 4.0.7 or later.