{"containers":{"cna":{"affected":[{"collectionURL":"https://repo.hex.pm","cpes":["cpe:2.3:a:team-alembic:ash_authentication:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["'Elixir.AshAuthentication.AddOn.AuditLog.Transformer'","'Elixir.AshAuthentication.AddOn.AuditLog.Auditor'"],"packageName":"ash_authentication","packageURL":"pkg:hex/ash_authentication","product":"ash_authentication","programFiles":["lib/ash_authentication/add_ons/audit_log/transformer.ex","lib/ash_authentication/add_ons/audit_log/auditor.ex"],"programRoutines":[{"name":"'Elixir.AshAuthentication.AddOn.AuditLog.Transformer':persist_logged_fields/3"},{"name":"'Elixir.AshAuthentication.AddOn.AuditLog.Auditor':get_params/2"}],"repo":"https://github.com/team-alembic/ash_authentication","vendor":"team-alembic","versions":[{"lessThan":"4.15.2","status":"affected","version":"4.12.0","versionType":"semver"},{"lessThan":"5.0.0-rc.19","status":"affected","version":"5.0.0-rc.0","versionType":"semver"}]},{"collectionURL":"https://github.com","cpes":["cpe:2.3:a:team-alembic:ash_authentication:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["'Elixir.AshAuthentication.AddOn.AuditLog.Transformer'","'Elixir.AshAuthentication.AddOn.AuditLog.Auditor'"],"packageName":"team-alembic/ash_authentication","packageURL":"pkg:github/team-alembic/ash_authentication","product":"ash_authentication","programFiles":["lib/ash_authentication/add_ons/audit_log/transformer.ex","lib/ash_authentication/add_ons/audit_log/auditor.ex"],"programRoutines":[{"name":"'Elixir.AshAuthentication.AddOn.AuditLog.Transformer':persist_logged_fields/3"},{"name":"'Elixir.AshAuthentication.AddOn.AuditLog.Auditor':get_params/2"}],"repo":"https://github.com/team-alembic/ash_authentication","vendor":"team-alembic","versions":[{"changes":[{"at":"5083af274013ebbf1681d863a1383cb1af77fff0","status":"unaffected"},{"at":"f7271f40b25af22e1ff69dbc0f3b782b5b76d3f5","status":"unaffected"}],"lessThan":"*","status":"affected","version":"255cfc9c0e511b7e0de39f8b3d676ae994fae06c","versionType":"git"}]}],"configurations":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>The <code>audit_log</code> add-on is enabled and the <code>api_key</code> strategy's sign-in action does not mark its <code>api_key</code> argument <code>sensitive?: true</code>, which is how the generator, the API keys guide and the usage rules write it. The other secrets are exposed only when the action the application defines for them omits <code>sensitive?</code>. Fields named in <code>include_fields</code> are logged by design.</p>"},{"base64":false,"type":"text/markdown","value":"The `audit_log` add-on is enabled and the `api_key` strategy's sign-in action does not mark its `api_key` argument `sensitive?: true`, which is how the generator, the API keys guide and the usage rules write it. The other secrets are exposed only when the action the application defines for them omits `sensitive?`. Fields named in `include_fields` are logged by design."}],"value":"The audit_log add-on is enabled and the api_key strategy's sign-in action does not mark its api_key argument sensitive?: true, which is how the generator, the API keys guide and the usage rules write it. The other secrets are exposed only when the action the application defines for them omits sensitive?. Fields named in include_fields are logged by design."}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:team-alembic:ash_authentication:*:*:*:*:*:*:*:*","versionEndExcluding":"4.15.2","versionStartIncluding":"4.12.0","vulnerable":true},{"criteria":"cpe:2.3:a:team-alembic:ash_authentication:*:*:*:*:*:*:*:*","versionEndExcluding":"5.0.0-rc.19","versionStartIncluding":"5.0.0-rc.0","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"AND"}],"credits":[{"lang":"en","type":"reporter","value":"Glenn Rempe"},{"lang":"en","type":"coordinator","value":"Zach Daniel"},{"lang":"en","type":"remediation developer","value":"Glenn Rempe"},{"lang":"en","type":"remediation reviewer","value":"Zach Daniel"}],"dateAssigned":"2026-12-03T09:50:37.000Z","datePublic":"2026-12-04T06:38:20.000Z","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>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.</p>\n<p>The <code>audit_log</code> add-on records every public argument of an audited action that is not marked <code>sensitive?</code>. The API key sign-in action written by <code>mix ash_authentication.add_strategy.api_key</code>, the API keys guide and the usage rules declares <code>api_key</code> without <code>sensitive?</code>, and nothing required it, so every API key sign-in, including each request <code>AshAuthentication.Strategy.ApiKey.Plug</code> authenticates, stored the plaintext key in the entry's <code>extra_data</code>. 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.</p>\n<p>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.</p>"},{"base64":false,"type":"text/markdown","value":"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.\n\nThe `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.\n\nThis 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."}],"value":"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.\n\nThe 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.\n\nThis 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."}],"impacts":[{"capecId":"CAPEC-560","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>A reader of the audit store takes a logged API key and signs in as its user through the API key strategy, with that user's permissions, until the key is revoked.</p>"},{"base64":false,"type":"text/markdown","value":"A reader of the audit store takes a logged API key and signs in as its user through the API key strategy, with that user's permissions, until the key is revoked."}],"value":"A reader of the audit store takes a logged API key and signs in as its user through the API key strategy, with that user's permissions, until the key is revoked."}]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"LOCAL","baseScore":6.7,"baseSeverity":"MEDIUM","privilegesRequired":"HIGH","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","valueDensity":"NOT_DEFINED","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"NONE","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-532","description":"CWE-532 Insertion of Sensitive Information into Log File","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-12-04T06:38:22.809Z","orgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","shortName":"EEF"},"references":[{"name":"Plaintext API keys stored in AshAuthentication audit log entries","tags":["vendor-advisory","related"],"url":"https://github.com/team-alembic/ash_authentication/security/advisories/GHSA-m7jx-358r-4v58"},{"name":"EEF CNA record for CVE-2026-139967","tags":["related"],"url":"https://cna.erlef.org/cves/CVE-2026-139967.html"},{"name":"OSV record EEF-CVE-2026-139967","tags":["related"],"url":"https://osv.dev/vulnerability/EEF-CVE-2026-139967"},{"name":"Introducing commit 255cfc9 in team-alembic/ash_authentication","tags":["related"],"url":"https://github.com/team-alembic/ash_authentication/commit/255cfc9c0e511b7e0de39f8b3d676ae994fae06c"},{"name":"Fix commit 5083af2 in team-alembic/ash_authentication","tags":["patch"],"url":"https://github.com/team-alembic/ash_authentication/commit/5083af274013ebbf1681d863a1383cb1af77fff0"},{"name":"Fix commit f7271f4 in team-alembic/ash_authentication","tags":["patch"],"url":"https://github.com/team-alembic/ash_authentication/commit/f7271f40b25af22e1ff69dbc0f3b782b5b76d3f5"}],"solutions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Upgrade to 4.15.2 or 5.0.0-rc.19. The audit log then never records a strategy's secret arguments unless <code>include_fields</code> names them, and an API key sign-in action whose argument is not sensitive compiles with a warning.</p>\n<p>Upgrading does not remove keys already logged. Treat every API key used while the add-on was enabled as exposed and revoke it; the middle segment of each key encodes the id of its API key record. Remove the keys from existing entries, for example on PostgreSQL with <code>UPDATE &lt;audit_log_table&gt; SET extra_data = extra_data #- '{params,api_key}' WHERE extra_data-&gt;'params' ? 'api_key';</code>, and account for backups, replicas and exports of the audit table.</p>"},{"base64":false,"type":"text/markdown","value":"Upgrade to 4.15.2 or 5.0.0-rc.19. The audit log then never records a strategy's secret arguments unless `include_fields` names them, and an API key sign-in action whose argument is not sensitive compiles with a warning.\n\nUpgrading does not remove keys already logged. Treat every API key used while the add-on was enabled as exposed and revoke it; the middle segment of each key encodes the id of its API key record. Remove the keys from existing entries, for example on PostgreSQL with `UPDATE <audit_log_table> SET extra_data = extra_data #- '{params,api_key}' WHERE extra_data->'params' ? 'api_key';`, and account for backups, replicas and exports of the audit table."}],"value":"Upgrade to 4.15.2 or 5.0.0-rc.19. The audit log then never records a strategy's secret arguments unless include_fields names them, and an API key sign-in action whose argument is not sensitive compiles with a warning.\n\nUpgrading does not remove keys already logged. Treat every API key used while the add-on was enabled as exposed and revoke it; the middle segment of each key encodes the id of its API key record. Remove the keys from existing entries, for example on PostgreSQL with UPDATE <audit_log_table> SET extra_data = extra_data #- '{params,api_key}' WHERE extra_data->'params' ? 'api_key';, and account for backups, replicas and exports of the audit table."}],"source":{"discovery":"EXTERNAL"},"title":"Plaintext API keys stored in AshAuthentication audit log entries","workarounds":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Mark the <code>api_key</code> argument of the API key sign-in action <code>sensitive?: true</code>, 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 <code>exclude_actions</code>. Neither removes keys already logged; see the solution.</p>"},{"base64":false,"type":"text/markdown","value":"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."}],"value":"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."}]}},"cveMetadata":{"assignerOrgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","assignerShortName":"EEF","cveId":"CVE-2026-139967","datePublished":"2026-12-04T06:38:22.809Z","dateReserved":"2026-11-30T16:56:04.243Z","dateUpdated":"2026-12-04T06:38:22.809Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"}