Am I affected?

type your erlef-cna/varsel version to check

Description

Improper 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.

A 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.

This issue affects cna.erlef.org: from 2026-07-30 before 2026-12-02; erlef-cna/varsel: from c7b718a9b8c24cf2aac245deb3b3319605a5ef2d before 76ac7dcade62473cfd8b98ae5d368b16b88e9f6e.

Weaknesses & attack patterns

Weakness

CWE-269 · Improper Privilege Management in catalog → MITRE ↗

Attack patterns

CAPEC-122 · Privilege Abuse MITRE ↗

A 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.

Affected — erlef-cna / varsel

≥ 2026-07-30 < 2026-12-02 affected
every other version: unaffected
cpe cpe:2.3:a:erlef-cna:varsel:*:*:*:*:*:*:*:*
version type date
modules · source files · routines
modules 'Elixir.Varsel.Accounts.Notifiers.DisconnectSockets' · 'Elixir.VarselWeb.LiveUserAuth'
source files lib/varsel/accounts/notifiers/disconnect_sockets.ex · lib/varsel_web/live_user_auth.ex
routines 'Elixir.Varsel.Accounts.Notifiers.DisconnectSockets':notify/1 · 'Elixir.VarselWeb.LiveUserAuth':on_mount/4

Affected — GitHub / erlef-cna/varsel Repository ↗

≥ c7b718a < 76ac7dc affected
every other version: unaffected
cpe cpe:2.3:a:erlef-cna:varsel:*:*:*:*:*:*:*:*
version type git
modules · source files · routines
modules 'Elixir.Varsel.Accounts.Notifiers.DisconnectSockets' · 'Elixir.VarselWeb.LiveUserAuth'
source files lib/varsel/accounts/notifiers/disconnect_sockets.ex · lib/varsel_web/live_user_auth.ex
routines 'Elixir.Varsel.Accounts.Notifiers.DisconnectSockets':notify/1 · 'Elixir.VarselWeb.LiveUserAuth':on_mount/4

References

Credits

Jonatan Männchen / EEF Finder Reporter Coordinator Remediation developer

CVSS breakdown

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

Exploitability

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
High
User Interaction
None

Vulnerable System

Confidentiality
High
Integrity
High
Availability
None

Subsequent Systems

Confidentiality
None
Integrity
None
Availability
None
« All CVEs