Lv, Liu, Mo and colleagues demonstrate that in pancreatic ductal adenocarcinoma cells, gasdermin E transports the transcription factor YBX1 to the nucleus, where it promotes the expression of mucins, thereby providing tumour cells with a barrier against digestive enzymes.