漏洞描述
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.
影响产品
修复建议
建议关注厂商安全公告,及时升级至已修复版本,并结合实际资产暴露情况采取缓解措施。
参考链接
github.comhttps://github.com/marimo-team/marimo/security/advisories/GHSA-8m59-7xv8-735h↗github.comhttps://github.com/marimo-team/marimo/pull/9789↗github.comhttps://github.com/marimo-team/marimo/commit/fdd55c8cf6260ae23bb411dc9d9269def5cf75d6↗www.vulncheck.comhttps://www.vulncheck.com/advisories/marimo-xss-via-file-query-parameter-in-assets-py↗nvd.nist.govhttps://nvd.nist.gov/vuln/detail/CVE-2026-54386↗