Therefore, we performed immune correlation analysis and GSEA to further investigate the mechanism by which activated STAT3 leads to poor cancer prognosis. Here, STAT3 is linked to cancer.