Nonadiabatic holonomic quantum computation has attracted increasing interest because of its robustness. In this paper, based on the shortcuts to adiabaticity (STA), we propose a scheme to construct a three-qubit nonadiabatic holonomic gate in a cavity quantum electrodynamics system. In the scheme, the three-qubit holonomic gate is implemented in a single step. Besides, numerical simulations show that the constructed holonomic quantum gate holds the characteristics of highfidelity, decoherence-resistance and error-immunity.