Prep: Line a large baking sheet with parchment paper or a silicone mat.
Melt: In a medium saucepan, add the corn syrup, sugar, peanut butter, and vanilla.
Heat: Cook over medium-low heat, stirring constantly, until the sugar dissolves and the edges just begin to bubble, 4 to 5 minutes. Remove from the heat right away.
Add the Cornflakes: Pour the cornflakes into the pan.
Fold: Gently fold until every flake is coated, working quickly.
Scoop: Drop heaping spoonfuls onto the baking sheet, about 2 inches apart.
Set: Let set at room temperature for 20 to 30 minutes, until firm.
Notes
No Thermometer: Remove the glaze as soon as the edges bubble gently.
Don't Boil Hard: A rolling boil makes rock-hard candy.
Peanut Butter: Use regular or no-stir creamy peanut butter, not runny natural peanut butter.
Crunchy Option: Crunchy peanut butter works the same way.
Fresh Cornflakes: Use plain, unsweetened flakes from a fresh box.
Work Fast: Have the baking sheet ready before you start.
No Corn Syrup: Use honey in the same amount.
Bars: Press into a lined 8x8-inch pan and cut once set.
Storage: Airtight at room temperature for up to 1 week. Don't refrigerate.
Freezing: Not recommended, since the cornflakes soften.