Police were called to an address on Frank Street, in the Little Horton area of Bradford, at 7.26pm yesterday and had to shoot the animal so paramedics could treat the boy.
A West Yorkshire Police spokesman said:
The child was then taken to Leeds General Infirmary where his condition this morning is described as stable, with injuries which are not believed to be life-threatening.
Inquiries are now ongoing as to the breed of the dog and to establish whether any criminal offence has been committed.
More top news
Windy and wet weather to end the month of May
They made it across a deadly sea this year, but their journey to what they hope will be political asylum had only just begun.
Scientists used modern forensic techniques to review the 'cold case' and determine the victim was probably killed by two blows to the head.