Cute Charm will go away if the affected Pokemon switches out.
It will remain affected if the ability changes though, since the ability was the cause of the status effect and not the actual status itself (if you Skill Swap Static it doesn't then cure the paralyzed Pokemon).
Source: Whitney's Milktank in HeartGold is honestly awful (aka knowledge)