Authenticated agents can execute scripts by uploading SVG files with malformed Content-Type parameters. By using the '/api/v1/media' endpoint to upload an SVG with the type 'image/svg+xml; x', the file is served inline without a sandbox via the '/uploads/{uuid}' endpoint, allowing the script to run in the session of any viewing agent or administrator. This is a stored cross-site scripting issue, where malicious scripts are permanently stored on the server and executed when a user views the affected page.