Line an 8x8 or 9x9 inch pan with foil and spray with cooking spray.
In a medium saucepan, combine white chocolate chips, peanut butter, and sweetened condensed milk. Heat over low heat, stirring constantly, until melted and smooth.
Remove from heat and stir in vanilla extract. Stir in 1 cup each of the candy corn and peanuts. Spread in the prepared pan.
Top with remaining candy corn and peanuts; press to adhere. Let cool to room temperature, then chill to set. Cut into squares.
Notes
Store in an airtight container at room temperature.