I have wondered the same thing. I have a plastic quart bottle of Hoppes #9 solvent that I am just about finished with, purchased in 2018. It isn't going as quickly as it used to, since I'm not regularly soaking my pistol barrels in a jar full of it. Anyway since I was concerned with it, I put that Hoppes and various other solvents and penetrating oils etc. into those disposable aluminum pans. This way if they leak it will limit the exposure to the other bottles of whatever else they share a pan with.
I also use plastic needle oilers for various solvents and lubes, and have had pretty good luck with those, except for the one I filled with Kroil. That thing regularly starts looking warped and as if it's losing air pressure inside. I figure one day I'll find it turned into a pile of mush in the little aluminum mini pie tin where it sits by itself.