ADVISORIES

GitHub Advisory Database

GHSA-4952-p58q-6crx

JupyterLab: XSS due to lack of sanitization of the action attribute of an html <form>

Details

Impact

Untrusted notebook can execute code on load. This is a remote code execution, but requires user action to open a notebook.

Patches

Patched in the following versions: 3.1.4, 3.0.17, 2.3.2, 2.2.10, 1.2.21.

References

OWASP Page on Restricting Form Submissions

For more information

If you have any questions or comments about this advisory, or vulnerabilities to report, please email our security list [email protected].

Credit: Guillaume Jeanne from Google

Affected packages

EcosystemPackageAffected versions
PyPIjupyterlab
All versions before 1.2.21 (fixed in 1.2.21)
PyPIjupyterlab
From 2.0.0a0 before 2.2.10 (fixed in 2.2.10)
PyPIjupyterlab
From 2.3.0a0 before 2.3.2 (fixed in 2.3.2)
PyPIjupyterlab
From 3.0.0a0 before 3.0.17 (fixed in 3.0.17)
PyPIjupyterlab
From 3.1.0a0 before 3.1.4 (fixed in 3.1.4)
PyPInotebook
All versions before 5.7.11 (fixed in 5.7.11)
PyPInotebook
From 6.0.0 before 6.4.1 (fixed in 6.4.1)

References