CVE-2026-45549: Custom Role Update Missing Authorization

A database operation updating user roles was detected inside a helper function that lacks explicit role verification context. Ensure that administrative actions updating existing user privileges are properly wrapped in sufficient authorization checks or restricted endpoints to prevent privilege escalation. Route handlers and creation logic are excluded.

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-45549-custom-role-update-missing-authorization --engine opengrep

Description

A database operation updating user roles was detected inside a helper function that lacks explicit role verification context. Ensure that administrative actions updating existing user privileges are properly wrapped in sufficient authorization checks or restricted endpoints to prevent privilege escalation. Route handlers and creation logic are excluded.