{"answers":{"affected":"1 open source package ship an affected version, including ash_authentication.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-66882 exists.","fix":"Upgrade ash_authentication to a fixed version for your release line: 4.14.2 or 5.0.0-rc.13.","what":"CVE-2026-66882 is a low-severity cross-site scripting vulnerability in team-alembic ash_authentication, published on 25 Aug 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-66882 and fix it if it is affected.\n\nWhat it is: CVE-2026-66882 is a low-severity cross-site scripting vulnerability in team-alembic ash_authentication, published on 25 Aug 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-66882 exists.\n\nAffected packages and fixed versions:\n- ash_authentication (Hex): affected from 4.8.0; fixed in 4.14.2, 5.0.0-rc.13\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-66882/ (Markdown: https://insights.sbomify.com/CVE-2026-66882/index.md)","id":"CVE-2026-66882","markdown":"https://insights.sbomify.com/CVE-2026-66882/index.md","name":"CVE-2026-66882","record":{"aliases":["EEF-CVE-2026-66882","GHSA-54fc-x3hv-ffhw"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["account_takeover","data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Elixir authentication library","requires_auth":"none","summary":"Reflected XSS in AshAuthentication allows attackers to execute scripts in the victim's browser via crafted confirmation or magic link URLs, potentially stealing sessions.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"EEF","cpe":[],"cvss":{"score":2.1,"severity":"low","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","version":"4.0"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"Improper Neutralization of Input During Web Page Generation (XSS) vulnerability in team-alembic AshAuthentication allows reflected cross-site scripting via the confirmation and magic link interaction forms.\n\nWhen a strategy is configured with require_interaction? set to true, AshAuthentication serves an intermediate HTML page asking the user to confirm the action by submitting a form. Both such pages embed a request parameter directly into a hidden input's value attribute without HTML escaping: lib/ash_authentication/add_ons/confirmation/confirmation_form.html.eex interpolates the confirm parameter, and lib/ash_authentication/strategies/magic_link/sign_in_form.html.eex interpolates the magic link token parameter. These templates are compiled with EEx.function_from_file/3 using plain \u003c%= %\u003e expressions, which perform no escaping, so the parameter is reflected verbatim.\n\nNeither accept handler validates the value before rendering it. AshAuthentication.AddOn.Confirmation.Plug.accept/2 only checks that a confirm key is present, and AshAuthentication.Strategy.MagicLink.Plug.accept/2 reads the parameter directly, so no token signature is verified at this stage and arbitrary attacker-supplied text reaches the template. An unauthenticated attacker can therefore craft a URL whose parameter terminates the attribute and injects markup, for example a quote followed by a \u003cscript\u003e element. Because the accept phase is served over GET, loading the crafted link is sufficient; no form submission or prior authentication is required.\n\nThe injected script executes in the origin of the application embedding AshAuthentication, giving it access to that origin's cookies, session, and same-origin responses. Since these pages are part of the authentication flow, a victim following what appears to be a legitimate confirmation or sign-in link is a plausible target.\n\nThis issue affects ash_authentication: from 4.8.0 before 4.14.2 and from 5.0.0-rc.0 before 5.0.0-rc.13.","ecosystems":["Hex"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Reflected XSS in AshAuthentication confirmation and magic link interaction forms","id":"CVE-2026-66882","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Hex","product":null,"products":[],"type":"xss","year":"2026"},"n_packages":1,"n_references":5,"next":{"headline":"Oidcc.Plug.Authorize user agent session binding inert due to case-sensitive header lookup","id":"CVE-2026-66883"},"packages":[{"ecosystem":"Hex","fixed":["4.14.2","5.0.0-rc.13"],"introduced":["4.8.0","5.0.0-rc.0"],"last_affected":[],"package":"ash_authentication","purl":"pkg:hex/ash_authentication","source":"EEF-CVE-2026-66882"}],"prev":{"headline":"Path traversal in imported file_entries name allows arbitrary file write via URL-type entry download","id":"CVE-2026-66881"},"products":["ash_authentication"],"published":"2026-08-25","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Erlang Ecosystem Foundation","prefix":"EEF"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-08-25","vendors":["team-alembic"]},"summary":"Reflected XSS in AshAuthentication allows attackers to execute scripts in the victim's browser via crafted confirmation or magic link URLs, potentially stealing sessions.","url":"https://insights.sbomify.com/CVE-2026-66882/"}