A description is given of compositions comprising a) one or more substances selected from the group consisting of hydrogen peroxide and hydrogen peroxide donor substances, b) water, c) one or more polymers having thickening properties and d) one or more substances selected from the group consisting of hydroxypyridones and salts thereof. The compositions are notable more particularly for their advantageous shelf lives.