The toxicity of bamboo shoots is primarily due to the presence of cyanogenic glycosides, specifically linamarin and taxiphyllin. These compounds can release hydrogen cyanide (HCN) when the plant tissue is damaged, such as during chewing or processing. Hydrogen cyanide is a potent toxin that can interfere with cellular respiration, potentially leading to cyanide poisoning if consumed in large amounts.