Black Friday60% off BLACKFRIDAY2026
Platform
PlansPartners
Resources
ToolsBlogDocs
Sign Up →
medium·Product Based Web Vulnerabilities·Updated Nov 27, 2026

CVE-2026-54386 Scanner

CVE-2026-54386 Scanner - Cross-Site Scripting (XSS) vulnerability in marimo

How to fix it
Est. Time~10 seconds
Scan TypeGroup Scan
Targetsurl
CostFree
0
Times Used
continuous scan runs
0
Continuously Checked
assets under CS
0
Vulnerabilities Found
confirmed findings
References
5.1
CVSSmedium
Exploitable remotely over the internet · no authentication required.
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.

Attack Vector
Network
Privileges Req.
None
User Interaction
A
Affected
marimoby marimo-team
AFFECTED< 0.23.9→SAFE ✓≥ 0.23.9
Updated Nov 27, 2026View on NVD →
Detail

Marimo is a software tool used by developers and teams to automate and manage tasks related to notebook servicing and application deployment. It is commonly used for both educational and professional purposes, allowing users to edit, run, and manage notebooks efficiently. Its flexible architecture supports varying deployment environments and includes functionalities such as interactive notebook editing and API integration. The platform is designed to aid users in creating and maintaining collaborative code environments with minimal setup effort. Features like real-time collaboration, resource sharing, and seamless editing provide a robust solution for project teams and individual developers alike. Marimo facilitates the coordination of software deployment processes with its wide range of customizable tools.

The vulnerability occurs in marimo versions prior to 0.23.9 and is classified as a reflected cross-site scripting (XSS) vulnerability. It affects the notebook page, where the file query parameter is mishandled, allowing injected scripts to be executed within the web application. The vulnerability is due to the absence of adequate input validation and escaping, particularly involving incorrect handling of single quotes in a JavaScript string. An attacker could exploit this flaw to execute malicious scripts in the context of a user's session. The flaw primarily lies in the way marimo handles certain inline JavaScript operations without proper escaping, paving the way for client-side script execution. By manipulating the file parameter in HTTP requests, attackers can implement this XSS attack.

The vulnerable endpoint is the notebook page in the marimo server, particularly the handling of the file query parameter. When a user accesses a crafted link containing malicious JavaScript code, the parameter gets reflected into the inline JavaScript string without adequate escaping. The vulnerable function resides in marimo/_server/api/endpoints/assets.py, which fails to escape single quotes correctly, allowing script injection. By leveraging the __new__ prefix, attackers can bypass normal notebook lookups and prompt the system to execute arbitrary scripts. This creates a loophole within the server where it improperly processes incoming requests without verifying the safety of the input. A successful attack could allow execution of attacker-controlled scripts within the marimo web application.

If exploited, this XSS vulnerability allows attackers to execute arbitrary JavaScript within the user's session on the marimo server. This can result in hijacking of user sessions, unauthorized manipulation of notebook contents, and possible compromise of sensitive data tied to the notebooks and user interactions. Malicious scripts could perform actions on behalf of the session user without their consent, potentially leading to data loss, defacement, or application misuse. This vulnerability poses a risk of information leakage and unauthorized access actions, posing a threat to both data integrity and confidentiality within affected deployments. Exploiting this could severely impact the privacy and security of user data, enabling attackers to alter notebook contents or disrupt ongoing operations.

REFERENCES

Solution Advice
  • Upgrade marimo to version 0.23.9 or later to ensure the vulnerability is patched.
  • Implement input validation and proper escaping for all user-supplied data to prevent XSS attacks.
  • Integrate security headers like Content-Security-Policy (CSP) to reduce the risk of script execution.
  • Regularly audit and test your codebase for potential vulnerabilities and ensure updated security practices are in place.
  • Educate users and staff on recognizing and reporting a malicious link to prevent social engineering attacks.

Get AI-powered remediation steps tailored to your asset.

Try AI Solutions →

Check your infrastructure.
Right now.

12,000+ scanners. Free to start. No credit card required.

Browse All Tools