Origin of gingerbread
Gingerbread reaches English through Middle English, Old French, Medieval Latin, Latin, Sanskrit and Ancient Greek. Gingerbread today means “A type of cake whose main flavoring is ginger”.
Etymology of gingerbread
From Middle English gyngebred, gyngebrede, from Old French gingembras, gingimbrat (“preserved ginger”), from Medieval Latin *gingimbrātus (“gingered”, presumably referring to ginger that perhaps had a pharmaceutical use for some medicinal preparation), with the intrusive m added to gingiber, from Latin zingiber (“ginger”), of earlier Sanskrit origin, through Ancient Greek ζιγγίβερις (zingíberis). The third syllable was earlier confounded with bread, and the insertion of an r in the second syllable completed the semblance of a compound word: ginger + bread.
Etymology text from Wiktionary (CC BY-SA 4.0). Asterisked forms are reconstructed, not attested.