Users with the viewer role can delete admin and other users account. It this leads to denial of service and affects data integrity.
Endpoint DELETE /api/users/admin is enable to anonymous user.
I deleted admin user on demo.frigate.video:
It this leads to denial of service and affects data integrity.
Restrict access to the endpoint to authenticated admin users only:
Add dependencies=[Depends(require_role(["admin"]))]) to this endpoint.
{
"cwe_ids": [
"CWE-285"
],
"github_reviewed": true,
"github_reviewed_at": "2026-03-18T14:25:15Z",
"nvd_published_at": "2026-03-20T10:16:19Z",
"severity": "HIGH"
}