CVE-2026-66882: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in team-alembic ash_authentication
Description
CVE-2026-66882 is a reflected cross-site scripting (XSS) vulnerability in the team-alembic ash_authentication library. It occurs when certain parameters are embedded directly into HTML form inputs without proper escaping, allowing an attacker to inject malicious scripts. This affects the confirmation and magic link interaction forms when require_interaction? is set to true. An unauthenticated attacker can craft a URL that triggers script execution in the context of the vulnerable application, potentially exposing cookies and session data. The vulnerability affects ash_authentication versions from 4.8.0 up to but not including 4.14.2, and from 5.0.0-rc.0 up to but not including 5.0.0-rc.13. The CVSS 4.0 base score is 2.1, indicating low severity.
CVSS v4.0
Score 2.1low
Affected software
team-alembic
ash_authentication
team-alembic
ash_authentication
pkg:hex/ash_authenticationpkg:github/team-alembic/ash_authenticationcpe:2.3:a:team-alembic:ash_authentication:*:*:*:*:*:*:*:*Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises because the ash_authentication library uses EEx templates with unescaped interpolation (<%= %>) for parameters in confirmation and magic link forms. Specifically, the confirm parameter and the magic link token parameter are embedded directly into hidden input values without HTML escaping. The accept handlers do not validate or verify these parameters before rendering, allowing an attacker to inject arbitrary HTML or JavaScript by crafting a malicious URL. Since the affected pages are served over GET requests and no authentication is required to trigger the vulnerability, an attacker can exploit this by enticing a user to visit a crafted link. The injected script executes in the origin of the application embedding ash_authentication, potentially compromising user session and cookie data. The affected versions are >=4.8.0 <4.14.2 and >=5.0.0-rc.0 <5.0.0-rc.13.
Potential Impact
An attacker can perform reflected cross-site scripting attacks, executing arbitrary scripts in the context of the vulnerable application. This can lead to theft of cookies, session tokens, or other sensitive information accessible to the browser within the application's origin. Because the vulnerable pages are part of the authentication flow, users may be tricked into clicking malicious links that appear legitimate, increasing the risk of successful exploitation. However, the CVSS score and description indicate the overall severity is low.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid enabling require_interaction? with ash_authentication or do not expose the affected confirmation and magic link forms to untrusted input. Implement input validation and proper HTML escaping for parameters embedded in templates. Monitor vendor channels for updates and apply official patches once released.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-07-28T04:15:10.240Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a8d50d0acd9273b49e6aa89
Added to database: 08/25/2026, 08:22:40 UTC
Last enriched: 09/10/2026, 20:18:17 UTC
Last updated: 10/09/2026, 18:48:22 UTC
Views: 75
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.