The vulnerability is a Broken Object Level Authorization (BOLA) issue within StudioCMS, allowing low-privileged 'visitor' users to access draft content they do not own. The provided patch efc10bee20db090fdd75463622c30dda390c50ad reveals that the fix was implemented in the application's middleware, specifically within the onRequest function in packages/studiocms/frontend/middleware/index.ts. Before the patch, this middleware only verified user authentication but did not check for authorization based on user roles. The exploit occurs when a 'visitor' accesses a URL like /dashboard/content-management/edit?edit={UUID}, and the onRequest function fails to block the request. The patch introduces a new file, _authmap.ts, which defines required permission levels for dashboard routes, and modifies onRequest to enforce these permissions. Therefore, the onRequest function is the critical point in the execution flow where the vulnerability manifested due to the absence of authorization logic. A runtime profiler would show this function being executed during an exploit attempt.