Résumé : he relative modification of the prompt ψ(2S) and J/ψ yields from pp to PbPb collisions, at the center-of-mass energy of 5.02 TeV per nucleon pair, is presented. The analysis is based on pp and PbPb data samples collected by the CMS experiment at the LHC in 2015, corresponding to integrated luminosities of 28.0 pb-1 and 464 μb-1, respectively. The double ratio of measured yields of prompt charmonia reconstructed through their decays into muon pairs, (Nψ(2S)/NJ/ψ)PbPb/(Nψ(2S)/NJ/ψ)pp, is determined as a function of PbPb collision centrality and charmonium transverse momentum pT, in two kinematic intervals: