CVE-2026-54386: marimo < 0.23.9 XSS via file Query Parameter in assets.py

Published Jun 17, 2026
·
Updated

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.

Affected Software

1 affected component
pypi/marimo<0.23.9

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade marimo to a version that resolves this vulnerability.

    Fixed in 0.23.9
  2. Compensating control

    Apply Content-Security-Policy (CSP) to the marimo server pages to prevent injected scripts from executing without CSP restrictions.

Event History

Jun 17, 2026
CVE Published
via MITRE·09:37 PM
Data Sourced
via MITRE·09:37 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:16 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2026-54386?

CVE-2026-54386 has a medium severity score of 6.1.

2

How do I fix CVE-2026-54386?

To fix CVE-2026-54386, upgrade to marimo version 0.23.9 or later.

3

What type of vulnerability is CVE-2026-54386?

CVE-2026-54386 is a reflected cross-site scripting (XSS) vulnerability.

4

What can attackers exploit in CVE-2026-54386?

Attackers can exploit CVE-2026-54386 by injecting arbitrary JavaScript through improper escaping of single quotes in the file query parameter.

5

Which software is affected by CVE-2026-54386?

CVE-2026-54386 affects the marimo software version below 0.23.9.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203