The England star's new contract will keep him at the Riverside until 2010, two years longer than his existing contract.
Stewie is currently at a training camp with Boro on Portugal's Algarve coastline, he has agreed in principle to the deal and will put pen to paper on his return.
It will bring great relief to Boro and end the speculation that was building over last weeks bid by Tottenham.