Preheat the oven to 250°F, with a rack in the middle. Line a baking sheet with parchment paper.
Microwave the popcorn according to the package directions. Stir together the popcorn and peanuts in a large bowl.
Melt the butter in a medium saucepan over medium heat. Add the brown sugar, corn syrup, and salt and stir until melted.
Bring to a boil and cook, stirring occasionally, until the mixture becomes a dark caramel color and the temperature reads 250°F on a candy thermometer, 5 to 6 minutes. Watch carefully!
Remove the pan from the heat and carefully add the vanilla and baking soda, stirring constantly (the mixture will spatter). Stir in the cayenne.
Immediately pour the caramel mixture over the popcorn and peanuts and gently toss with a wooden spoon or silicone spatula until the popcorn is coated.
Transfer the mixture to the prepared baking sheet and, using a silicone spatula, gently press the mixture into an even layer.
Bake for about 45 minutes, stirring halfway through, until the caramel has hardened.
Let cool on the baking sheet for about 15 minutes before serving. Store in an airtight container at room temperature for up to 1 week.
