The credit risk of small and medium‐sized enterprises (SMEs) in supply chain finance (SCF) hinders the sustainability of the supply chain and threatens the monetary loss of SCF partners, that is, focal enterprises (FEs) and financial institutions (FIs). Thus, it is crucial to predict SMEs' credit risk accurately. However, redundant features and imbalanced sample data may decrease the accuracy of the prediction model. Therefore, a novel credit risk prediction framework is proposed called FS‐RS‐ML, which is short for Feature Selection–Resample Strategy–Machine Learning. In this approach, Recursive Feature Elimination with Cross‐Validation (RFECV) is applied to select key features influencing SMEs' credit risk prediction, and three resampling techniques are used to balance the sample data. Finally, five machine learning algorithms are adopted to classify high‐risk and low‐risk SMEs. The experiments based on Chinese SCF data demonstrate that the FS‐RS‐ML framework outperforms any single algorithm. Moreover, according to the analysis of empirical results, features derived from SMEs have the most important impact on credit risk prediction. And the effect of key features on predicting SMEs' credit risk is revealed.