Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › News › Web

Advisory Medium CVE Analysis

Ubuntu patches nbconvert XSS and output filename flaws

Ubuntu has issued USN-9230-1 to address two security issues in nbconvert, including a cross-site scripting vulnerability tracked as CVE-2021-32862.

WebVulnerabilities

Key points

  • Ubuntu issued USN-9230-1 for two nbconvert vulnerabilities.
  • CVE-2021-32862 is a cross-site scripting flaw from improper sanitization of notebook content converted to HTML, reported by Alvaro Muñoz.
  • A second issue involves inadequate validation of output file names held in notebook metadata.

Ubuntu has released security update USN-9230-1 covering vulnerabilities in nbconvert, the tool used to convert Jupyter notebooks into other formats such as HTML.

The vulnerabilities

According to the Ubuntu advisory, Alvaro Muñoz found that nbconvert failed to properly sanitize some notebook content during conversion to HTML. As a result, a user who was persuaded to convert a maliciously crafted notebook could be exposed to cross-site scripting attacks. This flaw is tracked as CVE-2021-32862.

The advisory also notes a second issue: nbconvert did not correctly validate the output file names held in notebook metadata. The advisory does not provide further technical detail beyond this in the excerpt available.

What to do

Administrators running affected Ubuntu systems should apply the updates referenced in USN-9230-1. For full details on affected releases and fixed package versions, refer to the original Ubuntu Security Notice.

What to do

  1. Apply the package updates referenced in Ubuntu advisory USN-9230-1.
  2. Be cautious when converting notebooks from untrusted sources until patched.

Our article, written with AI assistance from the facts of the original report and the official vulnerability data below. Read the original for full details.

Original report

Ubuntu USNubuntu.com

“USN-9230-1: nbconvert vulnerabilities”

Alvaro Muñoz discovered that nbconvert did not properly sanitize certain notebook content when converting notebooks to HTML. If a user were tricked into converting a specially crafted notebook, an attacker could possibly use this issue to perform cross-site scripting attacks. (CVE-2021-32862) It was discovered that nbconvert did not properly validate output file names stored in notebook metadata…

Vulnerabilities mentioned