An algebraic classification of complex $5$-dimensional nilpotent commutative $mathfrak{CD}$-algebras is given. This classification is based on an algebraic classification of complex $5$-dimensional nilpotent Jordan algebras.