Use a 6-quart slow cooker. Put the beans into the bottom of your slow cooker insert and add the bag of frozen corn. Add the onion, squash, basil, cayenne pepper, and salt. Stir in the vegetable broth. Cover and cook on low for 6 hours, or until the onion is translucent.