We study the collective excitations, i.e., the Goldstone (phase) mode and the Higgs (amplitude) mode, near the superfluid--Mott glass quantum phase transition in a two-dimensional system of disordered bosons. Using Monte Carlo simulations as well as an inhomogeneous quantum mean-field theory with Gaussian fluctuations, we show that the Higgs mode is strongly localized for all energies, leading to a noncritical scalar response. In contrast, the lowest-energy Goldstone mode undergoes a striking delocalization transition as the system enters the superfluid phase. We discuss the generality of these findings and experimental consequences, and we point out potential relations to many-body localization.