CVE-2026-134591: API keys sent on the GraphQL websocket are written to the application log in Varsel
Summary
Insertion of Sensitive Information into Log File vulnerability in erlef-cna Varsel allows a reader of the application log to obtain API keys.
A client of /ws/gql sends its credential in the connect params, which VarselWeb.GraphqlSocket.connect/3 reads. Phoenix logs these params at info level and filters them by name. The :filterparameters list in config/config.exs did not match apikey, so each connect wrote the key in plain text. An API key carries the full authority of its user and has no scope. In earlier versions the list also did not match token, so an OAuth access token sent on the same endpoint was logged in the same way.
This issue affects cna.erlef.org: from 2026-07-30 before 2026-12-02; erlef-cna/varsel: from 55050dace0454eeef3d6c64bdee29f16a537c70b before ff49e7be0fb3e87b7cd6fe1f50da619c8e9406a8.
Impact
A reader of the application log obtains API keys in plain text and can act as the users who own them.
Other sources
Insertion of Sensitive Information into Log File vulnerability in erlef-cna Varsel allows a reader of the application log to obtain API keys.
A client of /ws/gql sends its credential in the connect params, which VarselWeb.GraphqlSocket.connect/3 reads. Phoenix logs these params at info level and filters them by name. The :filterparameters list in config/config.exs did not match apikey, so each connect wrote the key in plain text. An API key carries the full authority of its user and has no scope. In earlier versions the list also did not match token, so an OAuth access token sent on the same endpoint was logged in the same way.
This issue affects cna.erlef.org: from 2026-07-30 before 2026-12-02; erlef-cna/varsel: from 55050dace0454eeef3d6c64bdee29f16a537c70b before ff49e7be0fb3e87b7cd6fe1f50da619c8e9406a8.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
Add api_key to the :filter_parameters list in config/config.exs so GraphQL websocket credentials are filtered from logs.
Varsel :filter_parameters = include api_key
Event History
Frequently Asked Questions
Who can exploit the exposed credentials?
Any party able to read the application log can obtain API keys written by GraphQL WebSocket connections and use them with the full authority of the owning user. The affected API keys have no scope.
What traffic causes a credential to be logged?
A client connecting to /ws/gql sends its credential in the connection parameters. Phoenix logs those parameters at info level, and api_key was not covered by the configured parameter filter.
Are OAuth access tokens also at risk?
Earlier affected versions also failed to filter the token parameter. OAuth access tokens sent to the same endpoint could therefore be written to logs in plain text.
How can I determine whether an instance was affected?
Affected deployments include cna.erlef.org from 2026-07-30 until before 2026-12-02, and erlef-cna/varsel revisions from 55050dace0454eeef3d6c64bdee29f16a537c70b until before ff49e7be0fb3e87b7cd6fe1f50da619c8e9406a8. Review application logs from the affected period for /ws/gql connection parameters containing api_key or, in earlier versions, token.