Velociraptor uses a DOM sanitizer to protect against XSS attacks. Vulnerable versions of Velociraptor used a weaker regular expression to permit certain HTML attributes, which matched the right click handler (`oncontextmenu`). This allowed a stored XSS attack by permitting Javascript to be attached to the right click handler. The vulnerable code was triggered in an error path reachable from artifact viewer.
CVE-2026-123449