Cross-site scripting (XSS) vulnerability in WebCore as used in Apple Safari before 3.1 allows remote attackers to inject arbitrary web script or HTML via unknown vectors related to sites that set the document.domain property or have the same document.domain.