Preheat the oven to 350°F (175°C). Line a muffin tin with cupcake liners.
In a large bowl, combine flour, sugar, cocoa powder, baking powder, baking soda, and salt.
Add eggs, buttermilk, vegetable oil, and vanilla extract. Beat on medium speed until well combined.
Stir in boiling water until the batter is smooth. Fold in shredded coconut and chopped pecans.
Divide the batter evenly among the cupcake liners, filling each about 2/3 full.
Bake for 18-20 minutes or until a toothpick inserted in the center comes out clean. Allow to cool completely.
For the frosting, melt the butter in a saucepan over medium heat. Stir in brown sugar and milk. Bring to a boil and let boil for 2 minutes, stirring constantly.
Remove from heat and let cool for 5 minutes. Stir in powdered sugar and vanilla extract until smooth.
Frost the cooled cupcakes with the caramel frosting and top with additional pecans if desired.
Prep Time: 20 minutes | Cooking Time: 20 minutes | Total Time: 40 minutes
Kcal: 360 kcal | Servings: 12 cupcakes