For those not familiar with the specific implementation issue, this post should be a fun read.
I don't know what's more concerning, that pymerkletools advertises itself for use with Bitcoin or that none of the contributors read the wiki page :|
[0] https://en.wikipedia.org/wiki/Merkle_tree#Second_preimage_at...