In conclusion, our study revealed that CDKN2A and NEDD4 were associated with immune cell infiltration and elucidated significant immune heterogeneity among patients with cuproptosis-related molecular clusters of IPF. This evidence concerns the gene NEDD4 and idiopathic pulmonary fibrosis.