Daphnetin ameliorates acute lung injury in mice with severe acute pancreatitis by inhibiting the JAK2–STAT3 pathway. Here, STAT3 is linked to acute pancreatitis.