Mattel apologizes for link to porn site on 'Wicked' movie doll boxes

The boxes included a link to an adult film site with the same name as the movie.

Mattel has apologized after boxes for some of its new dolls from the movie "Wicked" included a link to a pornographic website.

The packages for the dolls were printed with a web address to an adult film site with the same name as the upcoming movie musical starring Ariana Grande and Cynthia Erivo.

Customers who noticed the mistake shared images of the toy boxes on social media.

Sarah Genao, a popular YouTube creator who makes videos about Legos, told ABC News she first heard about the printing mishap on Reddit and went to Target to see it for herself.

"I thought it was really funny initially, but I was also concerned because this went under the radar," she said, noting the dolls had already been on shelves for weeks.

Mattel has apologized for the boxes, describing the link as a "misprint."

"Mattel was made aware of a misprint on the packaging of the Mattel Wicked collection dolls, primarily sold in the U.S., which intended to direct consumers to the official WickedMovie.com landing page. We deeply regret this unfortunate error and are taking immediate action to remedy this," the toy company said in a statement.

"Parents are advised that the misprinted, incorrect website is not appropriate for children. Consumers who already have the product are advised to discard the product packaging or obscure the link and may contact Mattel Customer Service for further information," the company added.

The movie comes out in theaters on Nov. 22.