The IDO–AHR–IL-6–STAT3 loop is associated with poor prognosis in lung cancer. Here, STAT3 is linked to lung cancer.