AshAuthentication plaintext API keys stored in audit logs
- Exploited
- No known exploitation
- Fix
- Fixed in 4.15.2, 5.0.0-rc.19
- Who is exposed
- Not reported
Summary
A flaw in team-alembic's ash_authentication stores plaintext API keys in audit log entries. A local attacker with high privileges who can read that log can sign in as any user who has signed in with an API key.
Written by a model
Original description
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.
What to do
Upgrade to a fixed version: 4.15.2, 5.0.0-rc.19.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-139967 (Plaintext API keys stored in AshAuthentication audit log entries), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-139967 (entry last updated 2026-12-04):
Affected:
- Hex package ash_authentication: from 4.12.0, fixed in 4.15.2; from 5.0.0-rc.0, fixed in 5.0.0-rc.19
- team-alembic ash_authentication: version range not reported
Fixed versions: 4.15.2, 5.0.0-rc.19.
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
CISA KEV: CVE-2026-139967 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-139967 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Packages (Hex): find every lockfile in each project and run the stack.check operation of the cve.now MCP server (execute) on each one. Compare the resolved versions, not the ranges a manifest declares, with the affected versions above. Include transitive dependencies.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/team-alembic/ash_authentication/security/advisories/GHSA-m7jx-358r-4v58
- https://github.com/team-alembic/ash_authentication/commit/5083af274013ebbf1681d863a1383cb1af77fff0
- https://github.com/team-alembic/ash_authentication/commit/f7271f40b25af22e1ff69dbc0f3b782b5b76d3f5
- https://cna.erlef.org/cves/CVE-2026-139967.html
- https://osv.dev/vulnerability/EEF-CVE-2026-139967
- https://github.com/team-alembic/ash_authentication/commit/255cfc9c0e511b7e0de39f8b3d676ae994fae06c
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-139967
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-139967"}.Affected versions
- ash_authenticationFrom 4.12.0 · fixed in 4.15.2; From 5.0.0-rc.0 · fixed in 5.0.0-rc.19
- team-alembic/ash_authenticationVersion range not reported
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure?/25Unknown. No advisory context yet
- Reach10/20Affects Hex packages
- Severity6.7/10CVSS 6.7
- No patch0/5No signal
What would change the score
- Would score about 72 if added to CISA KEV
- Would score about 67 if CISA's SSVC rates exploitation active
- Would score about 39 if advisories confirm default setups are exposed
Timeline
- CVE published
- First seen by cve.now
Evidence 8
| Kind | Source |
|---|---|
| Vendor advisory 1Establishes: Affected and fixed versions. | |
| Advisory | GitHub · team-alembic/ash_authentication · Advisory GHSA-m7jx-358r-4v58 |
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-139967 |
| Record | NVD · CVE-2026-139967 |
| Other links 5 | |
| Patch | GitHub · team-alembic/ash_authentication · Commit 5083af27 |
| Patch | GitHub · team-alembic/ash_authentication · Commit f7271f40 |
| Repository | GitHub · team-alembic/ash_authentication · Commit 255cfc9c |
| Link | cna.erlef.org · cves/CVE-2026-139967.html |
| Link | osv.dev · vulnerability/EEF-CVE-2026-139967 |
Questions about CVE-2026-139967
Is CVE-2026-139967 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
Which versions are affected by CVE-2026-139967?
ash_authentication (Hex): from 4.12.0 before 4.15.2; from 5.0.0-rc.0 before 5.0.0-rc.19.
Source: cve.now feed data
How do I fix CVE-2026-139967?
Upgrade to a fixed version: 4.15.2, 5.0.0-rc.19.
Source: cve.now feed data
Related
- CVE-2026-76949Remember-me sign-in guard reads a session key that is never written in ash_authentication, allowing session replacement
- CVE-2026-91039dynamic_oidc identities are not namespaced by connection in ash_authentication, allowing cross-connection account takeover
- CVE-2026-88952OAuth2 sign-in attached to an existing account without an email comparison in AshAuthentication
- CVE-2026-85500`require_confirmed_with` is not enforced on the action and fails open on an unreadable attribute in AshAuthentication
- CVE-2026-86533Revoked session accepted because the session jti is never checked in AshAuthentication and AshAuthentication Phoenix
- CVE-2026-82761Magic link single-use tokens replayable via TOCTOU race in AshAuthentication
No corrections so far. Something wrong on this page? Report an error.