He said he was sure the equalities watchdog would be aware of the case and appropriate sanctions would follow.
He added: “Speaking for myself, I was appalled.
“We do not want a situation in this country where men are allowed to do things that women are then barred from. We cannot tolerate that.”
The annual event raises thousands of pounds for causes across the UK and abroad, including local youth projects, food banks and refugee support to international humanitarian relief.
The mayor of Tower Hamlets, Lutfur Rahman, is quoted on the website congratulating all those who took part, external, “especially to the youngsters and the elders and the community at large for participating today”.
The council said it had contacted the mosque to “seek urgent clarification” after reports about age and gender restrictions.
The EHRC is believed to be investigating, although it had not explicitly confirmed this.