As Joe mentioned above, Mavensmate suffered from a serious CSRF & CORS vulnerability (conceived by @ralph-callaway; confirmed by myself) where any website could make requests against the localhost server. This essentially meant any website you visited could access the auth tokens for your authenticated orgs.
For Example, the following script will return the list of projects authenticated (doesn't get the token, but doing so isn't hard once you have this info)
fetch("http://localhost:56248/execute?command=list-projects", { "credentials": "omit", "headers": { "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3" }, "referrer": "http://localhost:56248/app/home", "referrerPolicy": "no-referrer-when-downgrade", "body": null, "method": "GET", "mode": "cors" })
NOTE: I'm only sharing this now because we have officially killed the Client Id and all tokens issued from it.
If you choose to continue using mavensmate (via your own build), then you MUST add CSRF protections and lock down CORS.
However, I'd recommend transitioning to the official salesforce vscode extension. I've put together a short guide on how this can be done with the lowest possible lift (IOW without having to change your file structure).