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
Gary Vanhoeck, 51, was at home on his boat when he was "accosted" by two men, the Royal Bahamas Police Force said.
In an open letter to her children, Katie Hopkins has told them - and anyone else who wants to read - how her epilepsy will one day 'got her'
A baby girl should be taken away from her mother and live with her father and his boyfriend, a court has ruled.