Cupcakes should be refrigerated if not eating/serving. They will spoil if left out for a long period of time. These should keep well in the fridge for up to a week (though, the longer they sit, the soggier the cookie gets on the bottom-but it still tastes good!).
recipe from DomesticSuperhero.com