Apple has been accused of being “racist” after a Chinese boy was able to unlock his mom’s iPhone X with his own face.

The bizarre flaw was discovered by a husband who bought his wife the pricey new smartphone.

But she was shocked to discover her son was able to use his face to pass the facial recognition software.

It seems the family, who live in Shanghai, eastern China, could trick the system.

The father, identified only by his surname, Liu, said he phoned Apple’s customer service hotline to report the problem.

He was told it was a rare, isolated case caused by his wife and son looking very similar.

It’s thought the tech giant has now launched a full investigation into the Liu family’s claims.

The news comes just a week after a Chinese woman realized she could unlock her colleague’s iPhone X using the facial recognition software.

A shocking video shows how one woman was able to easily unlock the other’s phone. This was despite the pair having a number of different features, including totally different haircuts.

It’s now been suggested that the iPhone X is unable to tell Chinese people apart.

The claims have prompted outrage, with many on Twitter suggesting the software is “racist.”

One social media user wrote: “Racist iPhone X thinks all Asian people look the same.”

And another speculated: “Face ID is probably only properly tested on white people and this is the result.”

Apple continues to maintain that its facial recognition software is nearly foolproof.

It says there is only a one-in-a-million chance of someone else’s face being able to unlock your phone.

But iPhone users in China — a country of more than a billion people — are becoming increasingly concerned about their iPhone X’s security and privacy features.

Sun Online has contacted Apple for comment.