I think this might be your isse:
Is one or more of your plugins adding those gems?
Another issue you’re likely to have is that the plugins may be incompatible with the current version of Discourse. This doesn’t seem like a problem that’s likely to get solved via discussion here, though someone else might be more clever than I (or just notice something that I overlooked).
The first thing you should do is to solve whatever your problem with the discoure “front end” is. You already have a bunch of security issues and bugs that you’re dealing with.