Cui Yuanshi (崔元式) (died 848?) was an official of the Chinese dynasty Tang Dynasty, serving briefly as chancellor during the reign of Emperor Xuānzong.
It is not known when Cui Yuanshi was born. He was from the "The elder house of Boling" of the prominent Cui clan of Boling (博陵, in modern Hengshui, Hebei), which claimed ancestry from the ruling Jiang house of the Spring and Autumn period state Qi. Cui Xuan's traceable ancestors included officials of Qin Dynasty, Han Dynasty, Jin Dynasty (265-420), Northern Wei, and Tang Dynasty. His father Cui Jing (崔儆) served as a secretary general of the executive bureau of government (尚書省, Shangshu Sheng). His older brother Cui Yuanlüe (崔元略) was a prominent official during the reigns of Emperor Xianzong, Emperor Xianzong's son Emperor Muzong, and Emperor Muzong's sons Emperor Jingzong and Emperor Wenzong. Cui Yuanlüe was considered a potential chancellor at times, but was never chancellor. Cui Yuanlüe's son Cui Xuan, however, served as a chancellor before Cui Yuanshi did, and would again after Cui Yuanshi. Other than Cui Yuanlüe, Cui Yuanshi also had at least one older brother, Cui Yuanshou (崔元受), and one younger brother, Cui Yuanru (崔元儒); all of these Cui brothers known in history, including Cui Yuanshi passed the imperial examinations in the Jinshi class.