# CVE-2026-139967: Plaintext API keys stored in AshAuthentication audit log entries

- **Severity:** MEDIUM 6.7
- **CVSS:** 6.7 (v4.0, CNA) `CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Attack requirements: None; Privileges required: High; User interaction: None; Confidentiality impact: High; Integrity impact: None; Availability impact: None; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **CWE:** CWE-532
- **Published:** 2026-12-04T06:38:22.809Z
- **Modified:** 2026-12-04T07:17:29.643Z

## Who should check

- Anyone running team-alembic ash\_authentication \>= 4.12.0, \< 4.15.2; \>= 5.0.0-rc.0, \< 5.0.0-rc.19
- Anyone running team-alembic ash\_authentication \>= 255cfc9c0e511b7e0de39f8b3d676ae994fae06c, \< \*

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

## Affected and fixed versions

- team-alembic ash\_authentication: \>= 4.12.0, \< 4.15.2; \>= 5.0.0-rc.0, \< 5.0.0-rc.19 (cvelist)
- team-alembic ash\_authentication: \>= 255cfc9c0e511b7e0de39f8b3d676ae994fae06c, \< \* (cvelist)

## Mitigation

- Upgrade ash\_authentication to 5.0.0-rc.19 or later.
- Vendor workaround: Mark the api\_key argument of the API key sign-in action sensitive?: true, and do the same for any secret argument of a magic link, OTP, TOTP, recovery code or confirmation action the application defines. Alternatively, add the sign-in action to the audit log's exclude\_actions. Neither removes keys already logged; see the solution.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-139967. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-139967.md
Affected: team-alembic ash_authentication >= 4.12.0, < 4.15.2; >= 5.0.0-rc.0, < 5.0.0-rc.19; team-alembic ash_authentication >= 255cfc9c0e511b7e0de39f8b3d676ae994fae06c, < *
Fixed in: team-alembic ash_authentication 4.15.2, team-alembic ash_authentication 5.0.0-rc.19

Steps:
1. Search this machine and project for team-alembic ash_authentication: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-139967 being exploited?

There is no confirmed exploitation: CVE-2026-139967 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-139967?

Medium: CVSS 6.7 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-139967?

team-alembic ash\_authentication \>= 4.12.0, \< 4.15.2; \>= 5.0.0-rc.0, \< 5.0.0-rc.19; team-alembic ash\_authentication \>= 255cfc9c0e511b7e0de39f8b3d676ae994fae06c, \< \*.

### Is there a fix for CVE-2026-139967?

Yes. Fixed in team-alembic ash\_authentication 4.15.2, team-alembic ash\_authentication 5.0.0-rc.19. Upgrade ash\_authentication to 5.0.0-rc.19 or later. Vendor workaround: Mark the api\_key argument of the API key sign-in action sensitive?: true, and do the same for any secret argument of a magic link, OTP, TOTP, recovery code or confirmation action the application defines. Alternatively, add the sign-in action to the audit log's exclude\_actions. Neither removes keys already logged; see the solution.

### How do I check if I'm affected by CVE-2026-139967?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/team-alembic/ash_authentication/security/advisories/GHSA-m7jx-358r-4v58>
- patch: <https://github.com/team-alembic/ash_authentication/commit/255cfc9c0e511b7e0de39f8b3d676ae994fae06c>
- patch: <https://github.com/team-alembic/ash_authentication/commit/5083af274013ebbf1681d863a1383cb1af77fff0>
- patch: <https://github.com/team-alembic/ash_authentication/commit/f7271f40b25af22e1ff69dbc0f3b782b5b76d3f5>
- other: <https://cna.erlef.org/cves/CVE-2026-139967.html>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-139967>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-139967>

HTML: <https://flawdb.com/CVE-2026-139967> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-139967>
