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
Home Office data offers an incomplete picture of the perpetrators and victims, the National Audit Office (NAO) have said.
The report concludes that nine million adults suffer from constant loneliness, which is as harmful to health as obesity or smoking.
Members of the RMT and TSSA on Virgin Trains West Coast are taking industrial action.