The amendment to the penal code, which will go into force after being ratified by the president, also raises the age of criminal responsibility from seven to 10 years of age.
Under the revised legislation, sexual assaults will now be punishable by up to seven years in prison. Previously, only rape was criminalised.
Likewise, child pornography, which was previously not mentioned in the law, will be be punishable by seven years in prison and a fine of 700,000 rupees (USD 7000).
About 20 arrests were made, but only the acts of rape and sodomy were punishable by law.
The new amendment also criminalises child trafficking within Pakistan. Previously traffickers were only liable for punishment if they removed children from the country.
"This is a very important step to realise the obligations of Pakistan" under the Convention on the Rights of the Child, Sara Coleman, chief of child protection at UNICEF, told AFP.
She also called for the "establishment of a national commission on child rights, which is essential to monitor and coordinate the implementation of the law.
