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
"Big Sam" was spotted letting his hair down in the seaside resort weeks after securing Premier League survival for Sunderland.
Greater Manchester Police visited a property twice on Saturday - finding a body on the second occasion.
163,000 French and 143,000 German soldiers were killed in the 10-month battle in 1916.