They are stored in the database like a regular diagram. They are tied to the workspace. So, if a custom SVG is uploaded to workspace A, and the user switches to workspace B, the SVG will stay in Workspace A.
However, you can import/export diagrams with custom SVGs to other workspaces without issue.
So, these pictures are not consuming your dedicated file space quota