Mobs can spawn inside the secret 4 chests room in desert pyramids which can activate the TNT. This is stupid because all the loot is destroyed without the player’s fault. The secret room should be the same as Trial Chambers where mobs can't spawn inside.
Linked issues
Comments 2
This is intended per MC-830
That's not a bug and they will probably resolve this report as “feature request“.
However you could try to make a new suggestion on the official Minecraft Feedback website (https://feedback.minecraft.net/hc/en-us )