From what I recall, the cube purges debuffs, it doesn't prevent new ones from applying. You can be stunned in the cube by, for instance, an Infernus ult. It'll prevent you from ending it early. However, if you cube a stunned teammate, they immediately get un-stunned.