Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. pocketmine/pocketmine-mp
  4. ›
  5. GHSA-f9jp-856v-8642

GHSA-f9jp-856v-8642: PocketMine-MP: Player entities can still die and drop items in flaggedForDespawn state

April 6, 2026

When an entity dies, the entity is flagged for despawn, but remains in the World’s entity table, meaning it’s still accessible by doing World->getEntity($entityId) and other methods. The same is true of a player when quitting the server.

When a network packet arrives from a client to attack an entity, the handler fetches the entity using World->getEntity($entityId) without any checks if the entity is already marked for despawning. Depending on the timing, the entity in question might already be in the flagged-for-despawn state when the action is processed. This means that the death handler for the entity might be run multiple times, causing loot and XP to be dropped multiple times, among other potential side effects.

References

  • github.com/advisories/GHSA-f9jp-856v-8642
  • github.com/pmmp/PocketMine-MP
  • github.com/pmmp/PocketMine-MP/commit/c0719b76b18f2508143134e79bc9f1aa39109683
  • github.com/pmmp/PocketMine-MP/security/advisories/GHSA-f9jp-856v-8642

Code Behaviors & Features

Detect and mitigate GHSA-f9jp-856v-8642 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 before 5.39.2

Fixed versions

  • 5.39.2

Solution

Upgrade to version 5.39.2 or above.

Impact 3.7 LOW

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

Learn more about CVSS

Weakness

  • CWE-664: Improper Control of a Resource Through its Lifetime

Source file

packagist/pocketmine/pocketmine-mp/GHSA-f9jp-856v-8642.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 09 May 2026 12:20:03 +0000.