This is a little strange, but it is not related to Spring Security. Spring Web MVC also uses it; for example, to detect default values ββ@RequestParam and @PathVariable.
In my experience, people usually leave debugging information in their assemblies (even production assemblies) to support troubleshooting (registering the debug level is a completely different story), so Spring uses this. But itβs fair to say that Spring violates the principle of least surprise here, which means that you cannot expect debugging information to turn off in order to turn a working application into a broken application.