Josh Duggar Addresses Ashley Madison Accounts: I'm Addicted to Porn, Have Been Unfaithful to My Wife

Josh Duggar admits he's been unfaithful to his wife, Anna Duggar.

After news broke on Wednesday that Josh Duggar apparently had two Ashley Madison accounts, the embattled 27-year-old former lobbyist released a statement on Thursday revealing he has become addicted to viewing pornography.

"I have been the biggest hypocrite ever. While espousing faith and family values, I have secretly over the last several years been viewing pornography on the internet and this became a secret addiction and I became unfaithful to my wife," he writes.

"I am so ashamed of the double life that I have been living and am grieved for the hurt, pain and disgrace my sin has caused my wife and family, and most of all Jesus and all those who profess faith in Him."

WATCH: Josh Duggar Reportedly Had Two Ashley Madison Accounts

"I brought hurt and a reproach to my family, close friends and the fans of our show with my actions that happened when I was 14-15 years old, and now I have re-broken their trust."

"The last few years, while publicly stating I was fighting against immorality in our country, I was hiding my own personal failings."

"As I am learning the hard way, we have the freedom to choose to our actions, but we do not get to choose our consequences. I deeply regret all hurt I have caused so many by being such a bad example."

"I humbly ask for your forgiveness. Please pray for my precious wife Anna and our family during this time."

Josh's parents, Jim Bob and Michelle Duggar, said that their "hearts were broken" after learning of Josh's latest headline-making news.

"When we learned of this late last night our hearts were broken," the 19 Kids and Counting couple also said in a statement on their official website. "As we continue to place our trust in God we ask for your prayers for Josh, Anna, our grandchildren and our entire family."

WATCH: Michelle Duggar on Josh Duggar's Molestation Scandal -- 'We Felt We're Failures'

Josh has been married to his wife, Anna Duggar, since September 2008. They have four children together: Mackynzie, 5, Michael, 4, Marcus, 2, and Meredith, who was born just last month.

In May, Josh admitted to molesting five young girls -- four of whom were his younger sisters -- as a teenager. The Duggar family's hit TLC show was canceled in July, following the headline-making controversy. Josh also resigned from his position as executive director of FRC Action, the political arm of the Family Research Council, a conservative lobbying group.

But the former reality star found himself in the middle of another sex scandal on Wednesday, when his name was tied to the Ashley Madison security breach. On Tuesday, hackers released personal data from the site -- which is aimed at clients seeking extramarital affairs -- and Josh's name and information has allegedly been linked to two accounts on the site. Gawker reports that someone using a credit card belonging to a Joshua J. Duggar paid nearly $1,000 for two different monthly Ashley Madison subscriptions from February 2013 until May 2015, and that he also allegedly paid an up-front fee of $250 for the site’s "affair guarantee" when he launched the second account last July.

NEWS: Josh Duggar Molestation Allegations -- A Timeline of Events

Watch below: