Superconductivity in the cuprates is found to be intertwined with charge and spin density waves. Determining the interactions between the different types of order is crucial for understanding these important materials. Here, we elucidate the role of the charge density wave (CDW) in the prototypical cuprate La1.885Sr0.115CuO4, by studying the effects of large magnetic fields (H) up to 24 Tesla. At low temperatures (T), the observed CDW peaks reveal two distinct regions in the material: a majority phase with short-range CDW coexisting with superconductivity, and a minority phase with longer-range CDW coexisting with static spin density wave (SDW). With increasing magnetic field, the CDW first grows smoothly in a manner similar to the SDW. However, at high fields we discover a sudden increase in the CDW amplitude upon entering the vortex-liquid state. Our results signify strong coupling of the CDW to mobile superconducting vortices and link enhanced CDW amplitude with local superconducting pairing across the H − T phase diagram.