According to CNET… A new exploit will either lock up your iPhone or iPod Touch or crash your Safari browser on your PC or Mac OS desktop if you simply visit a maliciously coded Web site.
Web code locks up iPhones and iPod Touch
The current workaround is to disable Javascript in the Safari brower. Yuck. CNET’s article provides the 4-step process to disable JavaScript.