{
    "CVE_data_meta": {
        "ASSIGNER": "security-advisories@github.com",
        "ID": "CVE-2021-32797",
        "STATE": "PUBLIC",
        "TITLE": "JupyterLab: XSS due to lack of sanitization of the action attribute of an html <form>"
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "product": {
                        "product_data": [
                            {
                                "product_name": "jupyterlab",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_value": ">= 3.1.0, < 3.1.4"
                                        },
                                        {
                                            "version_value": ">= 3.0.0, < 3.0.17"
                                        },
                                        {
                                            "version_value": ">= 2.3.0, < 2.3.2"
                                        },
                                        {
                                            "version_value": ">= 2.0.0, < 2.2.10"
                                        },
                                        {
                                            "version_value": "< 1.2.1"
                                        }
                                    ]
                                }
                            }
                        ]
                    },
                    "vendor_name": "jupyterlab"
                }
            ]
        }
    },
    "data_format": "MITRE",
    "data_type": "CVE",
    "data_version": "4.0",
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "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\u2019t 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."
            }
        ]
    },
    "impact": {
        "cvss": {
            "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"
        }
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')"
                    }
                ]
            }
        ]
    },
    "references": {
        "reference_data": [
            {
                "name": "https://github.com/jupyterlab/jupyterlab/security/advisories/GHSA-4952-p58q-6crx",
                "refsource": "CONFIRM",
                "url": "https://github.com/jupyterlab/jupyterlab/security/advisories/GHSA-4952-p58q-6crx"
            },
            {
                "name": "https://github.com/jupyterlab/jupyterlab/commit/504825938c0abfa2fb8ff8d529308830a5ae42ed",
                "refsource": "MISC",
                "url": "https://github.com/jupyterlab/jupyterlab/commit/504825938c0abfa2fb8ff8d529308830a5ae42ed"
            }
        ]
    },
    "source": {
        "advisory": "GHSA-4952-p58q-6crx",
        "discovery": "UNKNOWN"
    }
}