It is absolutely not against Semantic Versioning to include debugs in a minor version. The rule of semantic versioning is that if you have a feature (with backwards-compatibility), you need to release a minor version at least. It would be indeed absurd to not be able to release in the same version both features and bug fixes.
However in your case, you would probably want to do two things:
- release a fix for your version 2.3.0 by releasing a 2.3.1
- include the fix in the 2.4.0 version as well (assuming you have more than one instance of the web application and that they won't all be always at the latest version).