Cobie Smulders forced to pull out of HBO movie Confirmation after breaking her leg... but admits she has no idea how she broke it

She's a medical mystery.

Cobie Smulders went to the doctor after one of her legs began to hurt and, to her surprise, discovered it was broken.

Now the injury has forced the 33-year-old Canadian actress to pull out of HBO movie Confirmation, according to Us Weekly on Wednesday.

Perfect pins: Cobie Smulders showed off her legs at an event in New York on June 24. She recently discovered she had broken one, forcing her to pull out of HBO's movie, Confirmation

Perfect pins: Cobie Smulders showed off her legs at an event in New York on June 24. She recently discovered she had broken one, forcing her to pull out of HBO's movie, Confirmation

What's more the How I Met Your Mother star has absolutely no idea how or when she sustained the injury. 

Confirmation stars Kerry Washington as Anita Hill, the attorney who sued Supreme Court nominee Clarence Thomas, played by Wendell Pierce, for sexual harassment in 1991.

An insider told Us Weekly that Cobie was due on set either this week or last week.

Getting serious: Confirmation stars Kerry Washington as Anita Hill, the attorney who sued Supreme Court nominee Clarence Thomas, played by Wendell Pierce, for sexual harassment in 1991

Getting serious: Confirmation stars Kerry Washington as Anita Hill, the attorney who sued Supreme Court nominee Clarence Thomas, played by Wendell Pierce, for sexual harassment in 1991

'She said her leg started hurting so she had it checked out,' the source explained, 'and that she must’ve done something to it without realising sometime earlier.' 

HBO is scrambling to recast Cobie as she rests up and have yet to reveal a replacement.

The mother-of-two was due to play Harriet Grant, one of the senior Democratic lawyers who interviewed Anita during the Senate hearings on Thomas. She is still listed in the role on the Internet Movie Data Base.

They're legendary: The 33-year-old is best known for co-starring with Neil Patrick Harris in the ensemble cast for ABC sitcom How I Met Your Mother, which wrapped last year after nine seasons

They're legendary: The 33-year-old is best known for co-starring with Neil Patrick Harris in the ensemble cast for ABC sitcom How I Met Your Mother, which wrapped last year after nine seasons

The cast also includes Grace Gummer, Dylan Baker, and Peter McRobbie.

Resting may be difficult for the Avengers: Age of Ultron actress as she shares a six-month-old baby girl and six-year-old daughter Shaelyn with her Saturday Night Live actor husband Taran Killam, 33.

The couple, who have yet to reveal their baby's name, got engaged in January 2009 and tied the knot on September 8, 2012, in Solvang, California.

Holding up the rear: The brunette plays agent Maria Hill in the Avengers franchise

Holding up the rear: The brunette plays agent Maria Hill in the Avengers franchise

The comments below have not been moderated.

The views expressed in the contents above are those of our users and do not necessarily reflect the views of MailOnline.

By posting your comment you agree to our house rules.

Who is this week's top commenter? Find out now