{"id":"EEF-CVE-2026-137262","summary":"Open LiveView keeps the previous role after a role change in Varsel","details":"## Summary\n\nImproper Privilege Management vulnerability in erlef-cna Varsel allows a user whose role was lowered to keep acting with the previous role through a LiveView that is already open.\n\nA LiveView resolves its actor when it mounts and keeps it. On a role change, `Varsel.Accounts.Notifiers.DisconnectSockets.notify/1` broadcasts a disconnect on the user topic, which only GraphQL sockets subscribe to. A LiveView socket is named after its session token and stays open. A former POC or supporter keeps the actions of the previous role, including publishing for a former POC, until the page mounts again.\n\nThis issue affects cna.erlef.org: from 2026-07-30 before 2026-12-02; erlef-cna/varsel: from c7b718a9b8c24cf2aac245deb3b3319605a5ef2d before 76ac7dcade62473cfd8b98ae5d368b16b88e9f6e.\n\n## Impact\n\nA user whose role was lowered keeps the actions of the previous role in a page that is already open. For a former POC this includes publishing.","aliases":["GHSA-jh82-xxcc-gxqp","CVE-2026-137262"],"modified":"2026-12-02T12:15:05.488380696Z","published":"2026-12-02T12:06:15.961Z","database_specific":{"cwe_ids":["CWE-269"],"$schema":"https://cna.erlef.org/schemas/osv/record-0.1.0.json","capec_ids":["CAPEC-122"],"cpe_ids":["cpe:2.3:a:erlef-cna:varsel:*:*:*:*:*:*:*:*"]},"references":[{"type":"ADVISORY","url":"https://github.com/erlef-cna/varsel/security/advisories/GHSA-jh82-xxcc-gxqp"},{"type":"WEB","url":"https://cna.erlef.org/cves/CVE-2026-137262.html"},{"type":"WEB","url":"https://github.com/erlef-cna/varsel/commit/c7b718a9b8c24cf2aac245deb3b3319605a5ef2d"},{"type":"FIX","url":"https://github.com/erlef-cna/varsel/commit/76ac7dcade62473cfd8b98ae5d368b16b88e9f6e"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/erlef-cna/varsel","events":[{"introduced":"c7b718a9b8c24cf2aac245deb3b3319605a5ef2d"},{"fixed":"76ac7dcade62473cfd8b98ae5d368b16b88e9f6e"}]}],"versions":["v0.14.0","v0.13.0","v0.12.2","v0.12.1","v0.12.0","v0.11.1","v0.11.0","v0.10.4","v0.10.3","v0.10.2","v0.10.1","v0.10.0","v0.9.0","v0.8.2","v0.8.1","v0.8.0","v0.7.0","v0.6.1","v0.6.0","v0.5.1","v0.5.0","v0.4.1","v0.4.0","v0.3.7","v0.3.6","v0.3.5","v0.3.4","v0.3.3","v0.3.2","v0.3.1","v0.3.0","v0.2.2","v0.2.1","v0.2.0","v0.1.5","v0.1.4","v0.1.3","v0.1.2","v0.1.1","v0.1.0"],"database_specific":{"program_files":["lib/varsel/accounts/notifiers/disconnect_sockets.ex","lib/varsel_web/live_user_auth.ex"],"program_routines":["'Elixir.Varsel.Accounts.Notifiers.DisconnectSockets':notify/1","'Elixir.VarselWeb.LiveUserAuth':on_mount/4"],"$schema":"https://cna.erlef.org/schemas/osv/affected-0.1.0.json","modules":["'Elixir.Varsel.Accounts.Notifiers.DisconnectSockets'","'Elixir.VarselWeb.LiveUserAuth'"],"source":"https://cna.erlef.org/osv/EEF-CVE-2026-137262.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","source":"CNA"}],"credits":[{"name":"Jonatan Männchen / EEF","type":"FINDER"},{"name":"Jonatan Männchen / EEF","type":"REPORTER"},{"name":"Jonatan Männchen / EEF","type":"COORDINATOR"},{"name":"Jonatan Männchen / EEF","type":"REMEDIATION_DEVELOPER"}]}