Description
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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| marimo-team | marimo | < 0.23.9 | 0.23.9 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | marimo | < 0.23.9 | 0.23.9 | GHSA-8m59-7xv8-735h |
References
- marimo 0.23.9 Release Notes release-notes
- https://github.com/marimo-team/marimo/pull/9789 issue-tracking patch
- https://github.com/marimo-team/marimo/commit/fdd55c8cf6260ae23bb411dc9d9269def5cf75d6 patch
- https://www.vulncheck.com/advisories/marimo-xss-via-file-query-parameter-in-assets-py third-party-advisory