Huh? What jar bought from a store these days is going to have that issue? There is uranium glass but even the cheapest cheap shit glass from the dollar store is going to be safe for food storage. Glass isn't likely to leach out harmful chemicals like plastic can. Plus glass doesn't absorb anything that could then later be harmful, that's why glass is used for canning among other things.
Old glass can be quite dangerous - carnival glass is especially notorious for contaminants. Glass is tricky and a lot of cheap glass intended for display and manufactured abroad may still not be food safe.