Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. pocketmine/pocketmine-mp
  4. ›
  5. GHSA-wjfq-88q2-r34j

GHSA-wjfq-88q2-r34j: Unhandled exception when decoding form response JSON

January 21, 2022 (updated December 26, 2025)

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.

References

  • github.com/advisories/GHSA-wjfq-88q2-r34j
  • github.com/pmmp/PocketMine-MP
  • github.com/pmmp/PocketMine-MP/blob/4.0.7/changelogs/4.0.md
  • github.com/pmmp/PocketMine-MP/commit/56fe71d939c38fe14e18a31a673a9331bcc0e4ca
  • github.com/pmmp/PocketMine-MP/security/advisories/GHSA-wjfq-88q2-r34j

Code Behaviors & Features

Detect and mitigate GHSA-wjfq-88q2-r34j with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 4.0.0 before 4.0.7

Fixed versions

  • 4.0.7

Solution

Upgrade to version 4.0.7 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Source file

packagist/pocketmine/pocketmine-mp/GHSA-wjfq-88q2-r34j.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 04 Feb 2026 00:35:43 +0000.