I've gone through security several times with cakes, cupcakes, etc. I've never had a problem. One TSA agent joked he was going to need a piece of cake in order for us to pass through security. I just make sure my purse is small so the cake will fit next to my purse under the plane seat.