James Corden was accused of stealing Noel Fielding's mugger joke in 2017

Watch: Noel Fielding's and James Corden's jokes compared in latest 'plagiarism' controversy

James Corden was once accused of ripping off one of Noel Fielding's jokes, it has emerged.

The Gavin And Stacey star has been under fire in recent days after using one of Ricky Gervais's jokes on The Late Late Show, which he has now said he did "inadvertently".

And in the wake of the controversy a 2017 tweet in which Bake Off star Fielding suggested that Corden had used his material has resurfaced.

Read more: James Corden branded a 'phony' by NY restaurant owner over 'fraudulent' apology

The original gag from 2010 saw Fielding talking about an attempted mugging and saying that when he whispered "Oi mate", the mugger dropped his weapon to ask, "What is it?"

James Corden was accused of using Noel Fielding's material. (CBS/Getty)
James Corden was accused of using Noel Fielding's material. (CBS/Getty)

Corden later said during a chat with actor Matthew Broderick on The Late Late Show that if someone tried to mug you the best way to deal with it was to whisper: "You are never going to believe what's happened."

"They go like this, they go, 'What?'" he said, dropping his fist down at his side.

Someone on Twitter suggested at the time that the joke was lifted from Fielding's.

Noel Fielding performs at the Royal Albert Hall, London, in aid of the Teenage Cancer Trust.
Noel Fielding tweeted at the time that he thought James Corden's joke was his. (PA)

And the star agreed as he tweeted: "Yes I believe this is my material x."

The tweet has re-emerged days after Corden was in hot water over telling one of Gervais's jokes.

After Life star Gervais had shared a clip from The Late Late Show in which Corden told a joke about angry social media users.

Gervais captioned it: "The bit about the town square advert for guitar lessons is brilliant."

In the show's monologue, Corden was talking about Elon Musk taking over Twitter.

He said: "That's what I think when you see Elon Musk talk about Twitter, he says, 'Well it's the town square', but it isn't. Because if someone puts up a poster in a town square that says guitar lessons available, you don't get people in the town square saying, 'I don't want to play the guitar! I want to play the piano, you piece of s**t!'"

The joke was the same as one that Gervais told in one of his stand-up routines.

Ricky Gervais flagged James Corden's joke on Twitter. (PA)
Ricky Gervais flagged James Corden's joke on Twitter. (PA)

When a fan asked whether Corden had asked to use it, Gervais replied: "No. I reckon one of the writers 'came up with it' for him. I doubt he would knowingly just copy such a famous stand up routine word for word like that."

Read more: James Corden jokes wife must think she's made 'huge mistake' when she looks at him

Corden later responded: "Inadvertently told a brilliant Ricky Gervais joke on the show last night, obviously not knowing it came from him. It’s brilliant, because it’s a Ricky Gervais joke. You can watch all Ricky’s excellent specials on Netflix. J x."

Yahoo has contacted representatives for Fielding and Corden for comment.

Watch: James Corden explains Gervais 'joke' story