The present invention relates to a composition that is sprayable in mousse form comprising one or more vinylformamide/vinylamine copolymers, one or more nonionic surfactants chosen from oxyalkylenated, preferably oxyethylenated, fatty alcohols, and one or more propellants. The present invention also relates to a process for styling keratin fibres, comprising the application of this composition to said fibres, and also to the use of such a composition for shaping the hair.