Can I pasteurize milk in a jam jar?
Any jar sold for home canning will work for what you want. They are designed to handle temperatures higher than 212°F/100°C.

What you want to avoid is thermal shock - a large and rapid change of temperature. Don't put cool/cold jar(s) in boiling water, don't put hot jar(s) directly on cool counter or in refrigerator/freezer. Don't fill cold jar(s) with hot contents and vice-versa.