The use of free-floating space robots for contact tasks is very promising in space exploration. However, severe damage or obvious disturbance may occur if inappropriate operation is implemented. In this paper, a novel risk assessment method is first proposed to give a clear description of the risk state before contact happens and provide guidance for configuration optimization to reduce risk on contact tasks. Firstly, the dynamics model of a free-floating space robot is given. On this basis, two important risk assessment indicators, the maximum contact force and the base attitude disturbance caused by contact, are derived. By integrating the risk assessment indicators, a novel risk assessment model is proposed for a free-floating space robot performing a contact task. It is a multidimensional and extensible risk assessment space which could give a clear description of the risk state before contact happens. Thereafter, considering the results given by the risk assessment model, the configuration optimization for a free-floating space robot is implemented based on the design of optimization factor in null space. Finally, numerical simulation for a 7-degree-of-freedom free-floating space robot performing a contact task is carried out, and the simulation results verify the effectiveness of the proposed method.