title: JupyterLab: XSS due to lack of sanitization of the action attribute of an html <form>
description: JupyterLab is a user interface for Project Jupyter which will eventually replace the classic Jupyter Notebook. In affected versions untrusted notebook can execute code on load. In particular JupyterLab doesn’t sanitize the action attribute of html `<form>`. Using this it is possible to trigger the form validation outside of the form itself. This is a remote code execution, but requires user action to open a notebook.
problem types: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
affected:
{
product: jupyterlab
vendor: jupyterlab
versions:
status: affected, version: >= 3.1.0, < 3.1.4
status: affected, version: >= 3.0.0, < 3.0.17
status: affected, version: >= 2.3.0, < 2.3.2
status: affected, version: >= 2.0.0, < 2.2.10
status: affected, version: < 1.2.1
}
metrics:
cvssV3_1: [
attackComplexity: LOW
attackVector: NETWORK
availabilityImpact: NONE
baseScore: 7.4
baseSeverity: HIGH
confidentialityImpact: HIGH
integrityImpact: NONE
privilegesRequired: NONE
scope: CHANGED
userInteraction: REQUIRED
vectorString: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
version: 3.1
]