If frosting using homemade cream cheese (or dairy containing frosting) then cupcakes should be stored in a fridge. If using storebought frosting or leaving them unfrosted, they can be stored at room temperature. Storing in the fridge may cause the cupcakes to dry out faster, but either way, the cupcakes should be kept in an airtight container for maximum freshness.