Our previous study showed that high levels of HMGB1 existed in rats following cardiopulmonary bypass (CPB)-induced acute lung injury (ALI) and neutralization of high-mobility group box 1(HMGB1) reduced CPB-induced ALI. However, the mechanism by which CPB increases HMGB1 secretion is unclear. Recent studies have shown that inflammasome-mediated cell pyroptosis promotes HMGB1 secretion. This study aimed to investigate the relationship between inflammasome-mediated pyroptosis and HMGB1 in CPB-related ALI. We employed oxygen-glucose deprivation (OGD)-induced alveolar macrophage (AM) NR8383 pyroptosis to measure HMGB1 secretion. We found that OGD significantly increased the levels of caspase-1 cleaved p10, IL-1β and ASC expression, caspase-1 activity and the frequency of pyroptotic AM, and promoted the cytoplasm transportation and secretion of HMGB1, which were significantly mitigated by ASC silencing or pre-treatment with glyburide (a Nlrp3 inhibitor) in AM. CPB also increased the expression levels of Nlrp3, ASC, caspase-1 P10, and IL-1β, and the percentages of AM pyroptosis in the lungs of experimental rats accompanied by increased levels of serum and bronchoalveolar lavage fluid (BALF) HMGB1. Treatment with glyburide significantly mitigated the CPB-increased ASC, caspase-1 p10 and IL-1β expression, and the percentages of AM pyroptosis in the lungs, as well as the levels of HMGB1 in serum and BALF in rats. Therefore, our data indicated that the Nlrp3/ASC-mediated AM pyroptosis increased HMGB1 secretion in ALI induced by CPB. These findings may provide a therapeutic strategy to reduce lung injury and inflammatory responses during CPB.