A protein on the surface of certain immune system cells, including CD4 T lymphocytes (CD4 cells). CXCR4 can act as a coreceptor (a second receptor binding site) for HIV when the virus enters a host cell.