It's Caper spurge - Euphorbia lathyris, sometimes known as the mole plant because it is alleged to deter moles. They often pop up from nowhere, because the seeds are released explosively, and can travel a fair distance. If you want to pull it up, take care because the milky sap is an irritant, and the whole plant is rather toxic, so wear gloves, and try not to let the sap splash on your skin.