In the real‐world environment, the path planning method of tracked robot is widely studied when driving on uneven terrain. How to solve the problem that the traditional path planning algorithm cannot adapt to uneven terrain because of the constraints of obstacle avoidance and path length is a challenge for tracked robots. In this paper, a stability‐based path planning framework for tracked robot is proposed to reduce the risk of rollover when the tracked robot passes through uneven terrain. First, a virtual plane method is proposed to estimate the attitude of tracked robot. Second, on this basis, a dynamic high‐stability path evaluation algorithm for tracked robot based on force angle stability margin (FASM) is proposed, which transforms the stability‐based path planning problem into a hypergraph problem. Moreover, considering that the optimization problem is strongly nonlinear and nonconvex, a hybrid algorithm of covariance matrix adaptive evolution strategy (CMAES) and Levenberg–Marquardt (LM) is designed under the framework of generalized graph optimization (G2O) to improve the solution efficiency. Finally, simulation and experiments show that the stability‐based path planning framework can effectively plan the high‐quality path, and the maximum stability of the tracked robot is 0.9156 when the robot crosses uneven terrain using optimal path 2.