Under the wave of digitization, the legal risks of housing lease contracts are characterized by complexity and high frequency. Based on the data analysis of national housing lease dispute cases, it is found that the proportion of disputes in economically developed regions reaches 67.14%, and 89.18% of the cases are directly related to the loopholes of contract terms. Through the Delphi method and questionnaire survey, 21 risk assessment indicators of 6 categories are established, and the ISM model is used to determine the weights of the indicators. The cloud model is further integrated to quantitatively evaluate the risk of a contract instance, and the risk is characterized by three-dimensional parameters of expected value (Ex), entropy (En) and hyperentropy (He). The system reliability and validity test shows that the Cronbach’s α coefficient is 0.876, and the KMO values are all > 0.8. Among them, B3 contract subject risk is the core, B1 policy and legal risk and B4 core clause risk are next, and B2 market and financial risk has the lowest weight of only 0.120. The finalized comprehensive evaluation cloud parameter of the project is (2.172,0.737,0.065), and cloud similarity calculation shows that the overall risk level is medium-low risk, with similarity 0.7137. Among them, C33 housing legality risk is medium risk (Ex=4.028, En=1.121). Finally, based on the four aspects of strengthening the qualification of the subject and the verification of the legality of the house, dynamically monitoring the policies and regulations and optimizing the core terms, constructing a fullprocess digital performance management system, and establishing a collaborative risk warning and response mechanism, a corresponding risk prevention strategy for housing leasing is established.