Generic character of charge and spin density waves in superconducting cuprates