Can refrigerated shredded mozzarella cheese go bad if the refrigerator door was left open overnight?
Almost certainly the cheese is fine, but it may grow moldy a bit faster than it would have otherwise. Just use it sooner rather than later (within a couple of days if you can). Check it for mold before each use, and throw away the whole bag if it shows any sign of mold or otherwise being "off".