The default .cm-line ::selection { background-color: transparent } styling is supposed to make the browser’s selection layer transparent, however this doesn’t seem to have an effect starting in Firefox 153. Instead FF renders its own selection on top of CodeMirror’s.
A workaround is to change the style to almost fully transparent, such as with background-color: #ffffff01 !important.
Possibly a browser bug?