Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. notebook
  4. ›
  5. CVE-2021-32798

CVE-2021-32798: Special Element Injection in notebook

August 23, 2021 (updated October 1, 2024)

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

References

  • github.com/advisories/GHSA-hwvq-6gjx-j797
  • github.com/jupyter/notebook
  • github.com/jupyter/notebook/commit/79fc76e890a8ec42f73a3d009e44ef84c14ef0d5
  • github.com/jupyter/notebook/security/advisories/GHSA-hwvq-6gjx-j797
  • github.com/pypa/advisory-database/tree/main/vulns/notebook/PYSEC-2021-118.yaml
  • nvd.nist.gov/vuln/detail/CVE-2021-32798

Code Behaviors & Features

Detect and mitigate CVE-2021-32798 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 5.7.11, all versions starting from 6.0.0 before 6.4.1

Fixed versions

  • 5.7.11
  • 6.4.1

Solution

Upgrade to versions 5.7.11, 6.4.1 or above.

Impact 9.6 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-75: Failure to Sanitize Special Elements into a Different Plane (Special Element Injection)
  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
  • CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)

Source file

pypi/notebook/CVE-2021-32798.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:27 +0000.