Stored cross-site scripting occurs in asset serving because the extension blocklist is incomplete and fails to include script-capable file types. This allows attackers to upload files with extensions such as `.xht`, `.ehtml`, `.xsl`, `.xbl`, or `.rdf` that resolve to executable media types. Consequently, JavaScript can be executed to steal API tokens and compromise workspaces.