Curse of vanishing is an enchantment that destroys item once you die, it's not useful in single player, but is useful in multiplayer. I'm wondering if they disappear from shulker boxes if you die?
The contents of shulker boxes and your ender chest are not affected by curse of vanishing.
No they don't. only items in your inventory will disappear when you die.