IKEA is recalling almost 64,000 VYSSA mattresses that were sold in Canada because they are too small and a child could get trapped in the gap between the mattress and the crib.

Health Canada posted a voluntary recall notice about the mattresses on its website Tuesday, noting that "a gap between the mattress and the side or end of the crib that is greater than 3 centimetres poses an entrapment hazard for an infant."

Health Canada advises anyone with a VYSSA mattress from IKEA to remove all bedding and fitted sheets from the product, then measure it and make sure the gap around the mattress is no more than three centimetres. If it is, "consumers should immediately stop using the affected product and return it to any IKEA store for an exchange or a full refund," Health Canada says.

IKEA says a gap of more than two fingers between the mattress and the edge of the crib is dangerous. (IKEA)

Mattresses affected by the recall were made before May 4, 2014 and include the following model names:

VACKERT

VINKA

SPELEVINK

SLOA

SLUMMER

The mattresses were all manufactured in Mexico and sold between 2010 and the date of the recall notice.