The paper discusses the solution to the problem of advanced risk management of oil and petroleum product pipeline systems (PS) based on calculating the level of stress-strain state of pipeline structures and reducing safety factors depending on the magnitude, rate, and frequency of pressure changes in the PS. The operating modes of some pipeline systems are characterized by unsteadiness, accompanied by an increased level and frequent changes in the pipe wall stresses and, as a result, increased accident risks. The pipeline systems operating in an unsteady mode include the main oil and petroleum product pipelines (MP), characterized by very long distances. In this case, possible damages to the linear MP parts cause significant loss. Therefore, despite the high reliability of these structures, maintaining an acceptable level of safety margins and the risk of accidents is a rather urgent problem. The risks of accidents are calculated using models linking the process parameters of the PS operating modes and their design characteristics with the permissible stresses in the pipe wall and the pipeline valve installation places.