I didn't work with Firebase myself, isn't this something relevant?
So here is what I'd refer to:
https://stackoverflow.com/questions/44133536/is-it-safe-to-s...
Regarding the Firebase, I see an open issue on this, so I guess we are not the only ones wondering :)