What does XSS have to do with remote code execution? I mean, it's possible for a Javascript parser to have vulnerabilities that can lead to arbitrary code execution, but the Amazon example seems in no way relevant here.
I have no idea what the bug is, all I meant was that it wasn't completely out of the realm of possibility to have something render a payload.