Fashion retailer H&M has issued a recall of children's pajamas due to a risk of burn injuries.

According to a notice on the U.S. Consumer Product Safety Commission's website, about 9,000 sets have been recalled due to a "violation of federal flammability standard."

The H&M website says that the tops of the 100 percent cotton knit, long-sleeve top and pant pajama sets range in sizes 2Y to 10Y. The tops do not meet the flammability standard for children's sleepwear and could pose a burn injury risk to children. The bottoms are not included in the recall.

>> Read more trending news

The first style being recalled was sold as a set of two, according to the CPSC recall. That set includes a pink long-sleeve top with a dog's face printed on the front and two extended 3D fabricated ears. The second top is gray with pink trim along the neckline, a tiny pink bow and a pink heart printed on the upper left torso area. The product code is 0494860.

The second style, sold as a single set, contains a white top with a cat's face printed on the front and 3D fabricated ears. The product code is 0537645.

The clothes were sold online and in stores from July 2018 and May 2019 for $14.99 to $24.99. Customers with the affected products should immediately stop using them and contact H&M for a full refund. Affected customers will also get a $20 gift card.

Customers with questions can contact H&M at 855-466-7467 or send a message through a website contact form. The quickest way to reach H&M is through chataccording to the recall page.