The issue arises from improper handling of certain expressions and methods, including the substr method in document.location.search and document.referrer, specific use of document.location.hash, certain "window[eval" and similar expressions, Function expressions, '=' expressions, and "with" expressions. This allows remote attackers to inject arbitrary web script.