These results proved that B2M positively participated in diverse immune related pathways in gliomas. Here, B2M is linked to central nervous system cancer.