{"containers":{"cna":{"affected":[{"collectionURL":"https://repo.hex.pm","cpes":["cpe:2.3:a:pow-auth:assent:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["'Elixir.Assent.Strategy.Apple'"],"packageName":"assent","packageURL":"pkg:hex/assent","product":"assent","programFiles":["lib/assent/strategies/apple.ex"],"programRoutines":[{"name":"'Elixir.Assent.Strategy.Apple':callback/2"},{"name":"'Elixir.Assent.Strategy.Apple':fetch_user/2"}],"repo":"https://github.com/pow-auth/assent","vendor":"pow-auth","versions":[{"lessThan":"0.3.2","status":"affected","version":"0.1.25","versionType":"semver"}]},{"collectionURL":"https://github.com","cpes":["cpe:2.3:a:pow-auth:assent:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["'Elixir.Assent.Strategy.Apple'"],"packageName":"pow-auth/assent","packageURL":"pkg:github/pow-auth/assent","product":"assent","programFiles":["lib/assent/strategies/apple.ex"],"programRoutines":[{"name":"'Elixir.Assent.Strategy.Apple':callback/2"},{"name":"'Elixir.Assent.Strategy.Apple':fetch_user/2"}],"repo":"https://github.com/pow-auth/assent","vendor":"pow-auth","versions":[{"lessThan":"18898bde0296152165ae470078490e5798329b1b","status":"affected","version":"a2d331e8c51376d6c0b04a81aad31e0b4d4d64a3","versionType":"git"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:pow-auth:assent:*:*:*:*:*:*:*:*","versionEndExcluding":"0.3.2","versionStartIncluding":"0.1.25","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"AND"}],"credits":[{"lang":"en","type":"finder","value":"Iain"},{"lang":"en","type":"reporter","value":"Iain"},{"lang":"en","type":"remediation developer","value":"Dan Schultzer"},{"lang":"en","type":"remediation verifier","value":"Richard Ash"},{"lang":"en","type":"coordinator","value":"Jonatan Männchen / EEF"}],"dateAssigned":"2026-10-30T23:33:00.000Z","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Acceptance of Extraneous Untrusted Data With Trusted Data vulnerability in the Sign in with Apple strategy in pow-auth Assent allows an unauthenticated remote attacker to impersonate another user via the <code>user</code> parameter of the authorization callback.</p>\n<p>Apple posts the user's name to the callback endpoint in a <code>user</code> form parameter that the browser submits and the client controls. <code>Assent.Strategy.Apple.callback/2</code> in <code>lib/assent/strategies/apple.ex</code> decodes that parameter, and <code>fetch_user/2</code> merges it over the claims of the verified ID token, so the unverified map wins. An attacker who completes a Sign in with Apple login with their own Apple ID and edits the <code>user</code> parameter can replace <code>sub</code>, <code>email</code>, and any other claim. Applications that look up, link, or authorize accounts by the returned subject or email then act on the attacker's values.</p>\n<p>This issue affects assent: from 0.1.25 before 0.3.2.</p>"},{"base64":false,"type":"text/markdown","value":"Acceptance of Extraneous Untrusted Data With Trusted Data vulnerability in the Sign in with Apple strategy in pow-auth Assent allows an unauthenticated remote attacker to impersonate another user via the `user` parameter of the authorization callback.\n\nApple posts the user's name to the callback endpoint in a `user` form parameter that the browser submits and the client controls. `Assent.Strategy.Apple.callback/2` in `lib/assent/strategies/apple.ex` decodes that parameter, and `fetch_user/2` merges it over the claims of the verified ID token, so the unverified map wins. An attacker who completes a Sign in with Apple login with their own Apple ID and edits the `user` parameter can replace `sub`, `email`, and any other claim. Applications that look up, link, or authorize accounts by the returned subject or email then act on the attacker's values.\n\nThis issue affects assent: from 0.1.25 before 0.3.2."}],"value":"Acceptance of Extraneous Untrusted Data With Trusted Data vulnerability in the Sign in with Apple strategy in pow-auth Assent allows an unauthenticated remote attacker to impersonate another user via the user parameter of the authorization callback.\n\nApple posts the user's name to the callback endpoint in a user form parameter that the browser submits and the client controls. Assent.Strategy.Apple.callback/2 in lib/assent/strategies/apple.ex decodes that parameter, and fetch_user/2 merges it over the claims of the verified ID token, so the unverified map wins. An attacker who completes a Sign in with Apple login with their own Apple ID and edits the user parameter can replace sub, email, and any other claim. Applications that look up, link, or authorize accounts by the returned subject or email then act on the attacker's values.\n\nThis issue affects assent: from 0.1.25 before 0.3.2."}],"impacts":[{"capecId":"CAPEC-22","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>An attacker with any Apple ID can sign in to an application that uses the Apple strategy as any other user whose Apple subject or email they know. Account lookup, account linking, and email-based access control then act on the attacker-chosen identity.</p>"},{"base64":false,"type":"text/markdown","value":"An attacker with any Apple ID can sign in to an application that uses the Apple strategy as any other user whose Apple subject or email they know. Account lookup, account linking, and email-based access control then act on the attacker-chosen identity."}],"value":"An attacker with any Apple ID can sign in to an application that uses the Apple strategy as any other user whose Apple subject or email they know. Account lookup, account linking, and email-based access control then act on the attacker-chosen identity."}]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"NETWORK","baseScore":9.3,"baseSeverity":"CRITICAL","privilegesRequired":"NONE","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","valueDensity":"NOT_DEFINED","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-290","description":"CWE-290 Authentication Bypass by Spoofing","lang":"en","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-349","description":"CWE-349 Acceptance of Extraneous Untrusted Data With Trusted Data","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-10-30T23:55:23.426Z","orgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","shortName":"EEF"},"references":[{"name":"Unverified Sign in with Apple callback parameter can override verified ID token claims","tags":["vendor-advisory","related"],"url":"https://github.com/pow-auth/assent/security/advisories/GHSA-9fr5-g44g-9526"},{"name":"EEF CNA record for CVE-2026-117656","tags":["related"],"url":"https://cna.erlef.org/cves/CVE-2026-117656.html"},{"name":"OSV record EEF-CVE-2026-117656","tags":["related"],"url":"https://osv.dev/vulnerability/EEF-CVE-2026-117656"},{"name":"Introducing commit a2d331e in pow-auth/assent","tags":["related"],"url":"https://github.com/pow-auth/assent/commit/a2d331e8c51376d6c0b04a81aad31e0b4d4d64a3"},{"name":"Fix commit 18898bd in pow-auth/assent","tags":["patch"],"url":"https://github.com/pow-auth/assent/commit/18898bde0296152165ae470078490e5798329b1b"}],"source":{"discovery":"EXTERNAL"},"title":"Unverified Sign in with Apple callback parameter can override verified ID token claims","workarounds":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Remove the <code>user</code> parameter from the callback parameters before you pass them to <code>Assent.Strategy.Apple.callback/2</code>, for example with <code>Map.delete(params, \"user\")</code>. Without the parameter, <code>decode_user_params/2</code> yields an empty map and the verified ID token claims pass through unchanged. The user's name is then unavailable, because Apple delivers it only through this parameter.</p>"},{"base64":false,"type":"text/markdown","value":"Remove the `user` parameter from the callback parameters before you pass them to `Assent.Strategy.Apple.callback/2`, for example with `Map.delete(params, \"user\")`. Without the parameter, `decode_user_params/2` yields an empty map and the verified ID token claims pass through unchanged. The user's name is then unavailable, because Apple delivers it only through this parameter."}],"value":"Remove the user parameter from the callback parameters before you pass them to Assent.Strategy.Apple.callback/2, for example with Map.delete(params, \"user\"). Without the parameter, decode_user_params/2 yields an empty map and the verified ID token claims pass through unchanged. The user's name is then unavailable, because Apple delivers it only through this parameter."}],"x_proofOfConcept":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<ol>\n<li>Start the Sign in with Apple flow of an application that uses <code>Assent.Strategy.Apple</code>.</li>\n<li>Authenticate at Apple with an Apple ID the attacker controls.</li>\n<li>Intercept the <code>form_post</code> request to the application's callback URL and set the <code>user</code> parameter to a JSON object that carries the victim's values, such as <code>{\"sub\": \"&lt;victim subject&gt;\", \"email\": \"victim@example.com\"}</code>.</li>\n<li>The application calls <code>Assent.Strategy.Apple.callback/2</code>. It validates the attacker's ID token and returns a user map whose <code>sub</code> and <code>email</code> are the victim's values, with <code>email_verified</code> set to true.</li>\n</ol>"},{"base64":false,"type":"text/markdown","value":"1. Start the Sign in with Apple flow of an application that uses `Assent.Strategy.Apple`.\n2. Authenticate at Apple with an Apple ID the attacker controls.\n3. Intercept the `form_post` request to the application's callback URL and set the `user` parameter to a JSON object that carries the victim's values, such as `{\"sub\": \"<victim subject>\", \"email\": \"victim@example.com\"}`.\n4. The application calls `Assent.Strategy.Apple.callback/2`. It validates the attacker's ID token and returns a user map whose `sub` and `email` are the victim's values, with `email_verified` set to true."}],"value":"* Start the Sign in with Apple flow of an application that uses Assent.Strategy.Apple.\n* Authenticate at Apple with an Apple ID the attacker controls.\n* Intercept the form_post request to the application's callback URL and set the user parameter to a JSON object that carries the victim's values, such as {\"sub\": \"<victim subject>\", \"email\": \"victim@example.com\"}.\n* The application calls Assent.Strategy.Apple.callback/2. It validates the attacker's ID token and returns a user map whose sub and email are the victim's values, with email_verified set to true."}],"x_technicalAnalysis":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p><strong>1. Unverified input.</strong> Apple's <code>form_post</code> response mode delivers <code>code</code>, <code>id_token</code>, <code>state</code>, and on the first authorization a <code>user</code> parameter that holds a JSON object with the user's name and email. The browser submits this parameter and Apple does not sign it, so the client controls its content.</p>\n<p><strong>2. Merge over verified claims.</strong> <code>Assent.Strategy.Apple.callback/2</code> decodes the <code>user</code> parameter with <code>Helpers.decode_json/2</code> and stores the map in the config under <code>:user</code>. After <code>Assent.Strategy.OIDC.fetch_user/2</code> has validated the ID token, <code>Assent.Strategy.Apple.fetch_user/2</code> calls <code>Map.merge/2</code> with the verified claims first and the decoded parameter second. Keys from the parameter overwrite keys from the token, including <code>sub</code> and <code>email</code>.</p>\n<p><strong>3. Result.</strong> <code>normalize/2</code> reads <code>sub</code> and <code>email</code> from the merged map and sets <code>email_verified</code> to true, so the application receives attacker-chosen identity fields marked as verified.</p>\n<p><strong>4. Fix.</strong> Version 0.3.2 ignores the parameter by default. With <code>include_unverified_name: true</code>, only <code>given_name</code> and <code>family_name</code> are taken from it, and the verified claims are merged over them.</p>"},{"base64":false,"type":"text/markdown","value":"**1. Unverified input.** Apple's `form_post` response mode delivers `code`, `id_token`, `state`, and on the first authorization a `user` parameter that holds a JSON object with the user's name and email. The browser submits this parameter and Apple does not sign it, so the client controls its content.\n\n**2. Merge over verified claims.** `Assent.Strategy.Apple.callback/2` decodes the `user` parameter with `Helpers.decode_json/2` and stores the map in the config under `:user`. After `Assent.Strategy.OIDC.fetch_user/2` has validated the ID token, `Assent.Strategy.Apple.fetch_user/2` calls `Map.merge/2` with the verified claims first and the decoded parameter second. Keys from the parameter overwrite keys from the token, including `sub` and `email`.\n\n**3. Result.** `normalize/2` reads `sub` and `email` from the merged map and sets `email_verified` to true, so the application receives attacker-chosen identity fields marked as verified.\n\n**4. Fix.** Version 0.3.2 ignores the parameter by default. With `include_unverified_name: true`, only `given_name` and `family_name` are taken from it, and the verified claims are merged over them."}],"value":"1. Unverified input. Apple's form_post response mode delivers code, id_token, state, and on the first authorization a user parameter that holds a JSON object with the user's name and email. The browser submits this parameter and Apple does not sign it, so the client controls its content.\n\n2. Merge over verified claims. Assent.Strategy.Apple.callback/2 decodes the user parameter with Helpers.decode_json/2 and stores the map in the config under :user. After Assent.Strategy.OIDC.fetch_user/2 has validated the ID token, Assent.Strategy.Apple.fetch_user/2 calls Map.merge/2 with the verified claims first and the decoded parameter second. Keys from the parameter overwrite keys from the token, including sub and email.\n\n3. Result. normalize/2 reads sub and email from the merged map and sets email_verified to true, so the application receives attacker-chosen identity fields marked as verified.\n\n4. Fix. Version 0.3.2 ignores the parameter by default. With include_unverified_name: true, only given_name and family_name are taken from it, and the verified claims are merged over them."}]}},"cveMetadata":{"assignerOrgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","assignerShortName":"EEF","cveId":"CVE-2026-117656","datePublished":"2026-10-30T23:55:23.426Z","dateReserved":"2026-10-30T23:30:02.017Z","dateUpdated":"2026-10-30T23:55:23.426Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"}