{"schemaVersion":3,"id":"CVE-2021-32862","aliases":["GHSA-9jmq-rx5f-8jwq","GHSA-h274-fcvj-h2wm","PYSEC-2022-249","UBUNTU-CVE-2021-32862","DEBIAN-CVE-2021-32862","DLA-3442-1","DLA-3863-1","CGA-pv9g-fg7v-q335"],"status":"published","duplicateOf":null,"title":null,"description":"The GitHub Security Lab discovered sixteen ways to exploit a cross-site scripting vulnerability in nbconvert. When using nbconvert to generate an HTML version of a user-controllable notebook, it is possible to inject arbitrary HTML which may lead to cross-site scripting (XSS) vulnerabilities if these HTML notebooks are served by a web server (eg: nbviewer).","dates":{"published":"2022-08-18T00:00:00.000Z","modified":"2024-09-02T21:02:59.728Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":5.4,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","exploitability":5.9,"impact":4.5,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":5.4,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","exploitability":5.9,"impact":4.5,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":5.4,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","exploitability":5.9,"impact":4.5,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":5.4,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","exploitability":5.9,"impact":4.5,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":5.4,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","exploitability":5.9,"impact":4.5,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.4,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01476,"percentile":0.73499,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.09300000000000003,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.01383},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01476,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01476,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01476,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01476,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01476,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01476,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01476,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01476,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01476,"percentile":0.73499}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01383,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01476,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01476,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01476,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01476,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01476,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01476,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01476,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01476,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01476,"percentile":0.73499}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_JUPYTER_NBCONVERT","name":"Nbconvert","source":"github","url":"https://github.com/jupyter/nbconvert/security/advisories/GHSA-9jmq-rx5f-8jwq","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","description":"The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/79.html"}],"affected":[{"vendor":"chainguard","product":"kubeflow-pipelines-visualization-server","name":"kubeflow-pipelines-visualization-server","label":"kubeflow-pipelines-visualization-server","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/kubeflow-pipelines-visualization-server","purlType":"apk","versions":[{"text":"< 2.4.0-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.4.0-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"kubeflow-pipelines-visualization-server","name":"kubeflow-pipelines-visualization-server","label":"kubeflow-pipelines-visualization-server","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/kubeflow-pipelines-visualization-server","purlType":"apk","versions":[{"text":"< 2.4.0-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.4.0-r0","eol":null,"hubHref":null},{"vendor":"debian","product":"nbconvert","name":"nbconvert","label":"nbconvert","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/nbconvert","purlType":"deb","versions":[{"text":"< 6.5.1-1","noFixRecorded":false,"fixedIn":null},{"text":"< 5.4-2+deb10u1","noFixRecorded":false,"fixedIn":null},{"text":"< 5.6.1-3+deb11u1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 6.5.1-1 | < 5.4-2+deb10u1 | < 5.6.1-3+deb11u1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"nbconvert","name":"nbconvert","label":"nbconvert","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/nbconvert","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"10.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"10.0","eol":{"isEol":true,"eolDate":"2024-06-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"10","label":"10 (Buster)","eolFrom":"2024-06-30T00:00:00.000Z","isLts":false,"isMaintained":true,"latestVersion":"10.13"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"jupyter","product":"nbconvert","name":"nbconvert","label":"nbconvert","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 6.2","noFixRecorded":false,"fixedIn":null},{"text":"≤ 6.2.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 6.2 | ≤ 6.2.0","eol":null,"hubHref":"/vendor/jupyter/nbconvert"},{"vendor":"PyPI","product":"nbconvert","name":"nbconvert","label":"nbconvert","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/nbconvert","purlType":"pypi","versions":[{"text":"< 6.5.1","noFixRecorded":false,"fixedIn":null},{"text":"< 6.3.0a0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 6.5.1 | < 6.3.0a0","eol":null,"hubHref":null}],"affectedCount":7,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://github.com/jupyter/nbconvert/security/advisories/GHSA-9jmq-rx5f-8jwq","label":"github.com/jupyter/nbconvert/security/advisories/GHSA-9jmq-rx5f-8jwq","hostname":"github.com","tags":["WEB","Advisory","REPORT","EVIDENCE","Exploit","Third Party Advisory"]},{"url":"https://github.com/jupyter/nbviewer/security/advisories/GHSA-h274-fcvj-h2wm","label":"github.com/jupyter/nbviewer/security/advisories/GHSA-h274-fcvj-h2wm","hostname":"github.com","tags":["WEB","Advisory","REPORT","Broken Link"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/06/msg00003.html","label":"lists.debian.org/debian-lts-announce/2023/06/msg00003.html","hostname":"lists.debian.org","tags":["Mailing List","WEB","Advisory","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/09/msg00004.html","label":"lists.debian.org/debian-lts-announce/2024/09/msg00004.html","hostname":"lists.debian.org","tags":["WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32862","label":"nvd.nist.gov/vuln/detail/CVE-2021-32862","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/jupyter/nbconvert","label":"github.com/jupyter/nbconvert","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/nbconvert/PYSEC-2022-249.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/nbconvert/PYSEC-2022-249.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://ubuntu.com/security/CVE-2021-32862","label":"ubuntu.com/security/CVE-2021-32862","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-32862","label":"www.cve.org/CVERecord?id=CVE-2021-32862","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-32862","label":"security-tracker.debian.org/tracker/CVE-2021-32862","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-645R-5WFV-8679","CGA-GJRV-PG24-MGHR"]},"timeline":[{"kind":"published","date":"2022-08-18T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-09-02T21:02:59.728Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":40,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T01:33:42.271Z","stale":false,"partial":false}}