Foaming cosmetic composition comprising, in a physiologically acceptable medium: at least one lysate of bacterium (s) belonging to the genus Vitreoscilla sp., In a complete fermentation medium, at least 2.5% by weight relative to the total weight of said composition of a polymer chosen from: a) an associative polymer of polyether polyurethane type b) an associative polymer of polyether polyurethane type c) a copolymer of (meth) acrylamido (C1-C22) alkylsulphonic acid, and - at least one foaming surfactant. Composition cosmétique moussante comprenant, dans un milieu physiologiquement acceptable : - au moins un lysat de bactérie(s) appartenant au genre Vitreoscilla sp., dans un milieu de fermentation complet, - au moins 2,5 % en poids par rapport au poids total de ladite composition d'un polymère choisi parmi : a) un polymère associatif de type polyéther polyuréthane b) un polymère associatif de type polyéther polyuréthane c) un copolymère d'acide (méth)acrylamido(C1-C22)alkylsulfonique, et - au moins un tensioactif moussant.