What is this shrub?

It’s popped up in my garden recently, and the roots are strong enough that I was unable to pull out one that was roughly 12 cm tall. The main stalk and all the branches have hard thorns. At a glance,…