To conclude, serum TNF‐α, IL‐1β, and IL‐17 levels are highly expressed, which are closely related to elevated anxiety and depression risks to some extent in NSCLC survivors. This evidence concerns the gene TNF and major depressive disorder.