freenode

← CVE tracker

CVE-2026-139967

Plaintext API keys stored in AshAuthentication audit log entries

Severity
medium CVSS 6.7 (v4.0)
Affects
ash_authentication · team-alembic
Weakness
CWE-532 Insertion of Sensitive Information into Log File
Published
4 December 2026 by EEF
Insertion of Sensitive Information into Log File vulnerability in team-alembic ash_authentication allows a reader of the audit log to sign in as any user who has signed in with an API key. The audit_log add-on records every public argument of an audited action that is not marked sensitive?. The API key sign-in action written by mix ash_authentication.add_strategy.api_key, the API keys guide and the usage rules declares api_key without sensitive?, and nothing required it, so every API key sign-in, including each request AshAuthentication.Strategy.ApiKey.Plug authenticates, stored the plaintext key in the entry's extra_data. The application keeps only key hashes, but anyone who can read the audit table, its backups or an admin view of it obtains working keys. Magic link and confirmation tokens, one-time passwords, and TOTP and recovery codes were stored the same way when the action did not mark them sensitive. This issue affects ash_authentication: from 4.12.0 before 4.15.2 and from 5.0.0-rc.0 before 5.0.0-rc.19.

Our coverage

We have not written about this one. Know why it matters? Send a tip.