I was just looking at Dom based xss and wondering if hash value is written to a variable in javascript context can lead to Cross site scripting. The code looks something like this:
<script>
var myhash=window.location.hash;
</script>
Is the above code vulnerable to xss?