Read the docs
TI-2022-26465 Aliases GHSA-wjfq-88q2-r34j

Unhandled exception when decoding form response JSON

Priority LOW 38Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
—
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub.

Summary

### 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. ### Patches 56fe71d939c38fe14e18a31a673a9331bcc0e4ca ### 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]](mailto:[email protected])

Why it matters now

Fix Fixed pocketmine/pocketmine-mp (Packagist): 4.0.7

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—pocketmine/pocketmine-mp (Packagist)4.0.0 to before 4.0.74.0.7Patch availableGHSA-wjfq-88q2-r34j
  • pocketmine/pocketmine-mp (Packagist) Vendor— Affected 4.0.0 to before 4.0.7 Fixed in 4.0.7 Patch available GHSA-wjfq-88q2-r34j

Remediation

  • Fix · GHSA-wjfq-88q2-r34j pocketmine/pocketmine-mp (Packagist) Fixed in 4.0.7 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-wjfq-88q2-r34j

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences