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
A grandmother says she was outraged after her grandson was segregated from his classmates by a cardboard screen - for being one minute late.
Leaked documents have revealed the first known picture of Mohammed Emwazi - named as IS militant Jihadi John - as a student in London.
With March just around the corner it's looking like this winter will be the sunniest on record (data goes back to 1929).