Stems, leaves, and unripe tomatoes are bad for dogs, ripe tomato flesh is actually considered non-toxic. However, tomato sauce contains additional ingredients like garlic and onions, which can also cause an upset stomach.