The device for containing waste material leaking from the junction between a stoma and a stoma bag 10 having a flange (12, fig 9) comprises a flange extension member 9 which circumferentially surrounds the stoma bag flange and includes a pouch 16 for holding a spare stoma bag. The flange extension member can comprise an absorbent layer and can be sealed to the user's skin at its outer edge. Additionally, the flange extension member can have a waterproof or impermeable backing layer to prevent waste material from seeping through it. A modified stoma bag flange and a modified stoma bag are also described.