Preheat the oven to 350°F (177°C). Line a 12-cup muffin pan with cupcake liners. Line a second pan with more liners—this recipe makes about 16 cupcakes. Set aside. In a medium bowl, whisk together the flour, baking soda, baking powder, salt, cinnamon, nutmeg, and allspice. Set aside.
Peel and core the apple, then use the large size of a box grater to shred the apple until you have 1 1/2 Cups (180g). Set aside.
In a second medium bowl, whisk together the vegetable oil, brown sugar, and granulated sugar until combined. Add the vanilla, eggs, and milk and whisk until combined. Add the dry ingredients and whisk until mostly combined, then fold in the apples with a silicone spatula.
Fill the cupcake liners 3/4 of the way full and bake for 16-20 minutes, until a toothpick inserted comes out clean or with just a few moist crumbs. Cool completely to room temperature while you make the salted caramel.