The thorns on the stem of rose are formed by epidermis, which has nothing to do with vascular tissue and is obviously different from the thorns on the stem.
A leaf or a part of a leaf (such as stipules) becomes prickly, which is called a leaf thorn. There are buds in the axils of leaf thorns, which later develop into short branches with normal leaves on them. For example, the leaves on the long branches of Berberis become thorns, the stipules of Robinia pseudoacacia become thorns, and the thorns are in the stipules, which is easy to distinguish.