Actually, we don't know. It seems that nobody has ever been banned for playing online.
Technically, Nintendo probably couldn't know you are on CFW. BUT, if you play with DLC only available on eshop, it's possible to Nintendo to check there is a inconsistency if you don't pay for it and play with it online (MK8 DLC for example)