Cultivated varieties hardly contain any, but they can appear through crosses with ornamental or wild gourds (if you save your own seed) or through stress. They give a very marked bitterness and cause vomiting, diarrhoea and abdominal pain, sometimes severe.
If a courgette, squash or cucumber tastes very bitter, spit it out and throw the rest away: cooking does not remove it.

