To attach pumpkin teeth securely, use a hot glue gun or toothpicks. Apply a small amount of hot glue to the back of the teeth and press them firmly into place. If using toothpicks, insert them into the pumpkin first and then slide the teeth onto the toothpicks. Make sure the teeth are firmly attached to prevent them from falling off.