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
Mourners donned their masks and capes for a special superhero-themed funeral for a comic book fan who killed himself after being bullied.
Drug dealer who posed for selfies with wads of cash from his crimes is jailed for six years.
The traumatised children had to be rescued by fire fighters after the driver ignored closed road signs during a major flood.