It's known, but I don't think it's considered a bug.
The suggestion at the moment is to use an extension if you have code that needs to reside in the <head> tag. The reasoning is that it's far easier to screw up your site with malicious code in the head tag, so requiring an extension means that it takes someone who knows what they're doing and isn't just cutting/pasting scripts carelessly. It's also easier to fix with a composer command, rather than having to dive into the database to remove the code.