  The CMS Collaboration has performed many studies in the field of heavy flavor
spectroscopy. In this report, recent studies on exotic resonances in
proton-proton collisions at $\sqrt{s} = 13$ TeV at CMS are presented. For the
exotic hadrons, these results include the first evidence for X(3872) in
heavy-ion collisions and three new structures in $J/\psi J/\psi$ mass spectrum.
Beside the exotic hadrons, we also found new decay channels in conventional
beauty hadrons, including $B^{0}_{s}\rightarrow\psi(2S)K^{0}_{S}$,
$\Lambda_{b}^{0}\rightarrow J/\psi\Xi^{-}K^{+} $, $B^{0} \rightarrow
\psi(2S)K^{0}_{S}\pi^{+} \pi^{-}$, and $\Xi_{b}^{-} \rightarrow
\psi(2S)\Xi^{-}$.
