{"id":"CVE-2026-67338","aliases":["CVE-2026-67338","GHSA-vmhf-c436-hxj4","BIT-JUPYTERLAB-2026-67338"],"related":[],"kind":"vulnerability","state":"published","title":"JupyterLab before 4.5.9 Stored XSS via Extension Manager","summary":"JupyterLab before 4.5.9 contains a stored cross-site scripting vulnerability in the Extension Manager that fails to validate URI protocols in package metadata URLs. Attackers can publish malicious PyPI packages with javascript: URLs in project metadata that execute arbitrary JavaScript in the JupyterLab origin when users click the extension name.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"JupyterLab before 4.5.9 contains a stored cross-site scripting vulnerability in the Extension Manager that fails to validate URI protocols in package metadata URLs. Attackers can publish malicious PyPI packages with javascript: URLs in project metadata that execute arbitrary JavaScript in the JupyterLab origin when users click the extension name.","source":"cvelist"},{"lang":"en","text":"A malicious PyPI package can place a `javascript:` URL in its `[project.urls]` metadata. JupyterLab's Extension Manager renders this as the extension's home-page link without validating the protocol, so a user who clicks the extension name executes attacker-controlled JavaScript in the JupyterLab origin.\n\n### Details\n\nOne of the PyPI package's URL (jupyterlab/extensions/pypi.py) is copied straight into the `homepage_url` rendered by the frontend in packages/extensionmanager/src/widget.tsx#L77-L88.\n\n```python\nbest_guess_home_url = (\n    homepage_url            # home_page / [project.urls] Homepage\n    or data.get(\"project_url\")\n    or data.get(\"package_url\")\n    or documentation_url    # docs_url / [project.urls] Documentation\n    or source_url           # [project.urls] Source Code\n    or bug_tracker_url      # bugtrack_url / [project.urls] Bug Tracker\n)\n\n# homepage_url=best_guess_home_url\n```\n\n```tsx\n{entry.homepage_url ? (\n  <a href={entry.homepage_url} target=\"_blank\" rel=\"noopener noreferrer\" ...>\n    {entry.name}\n  </a>\n) : ( <div>{entry.name}</div> )}\n```\n\n### Impact\n\nAn attacker needs to publish a package to PyPI (no access to the target). When the package appears in a victim's extension manager list and the victim clicks the extension name, the payload runs in the JupyterLab origin.\n\nPreconditions: Extension Manager enabled with the default PyPI source, the malicious package appears in the victim's list/search results.\n\n### Patches\nPatched in [4.5.9](https://github.com/jupyterlab/jupyterlab/releases/tag/v4.5.9), commits [4e61e07](https://github.com/jupyterlab/jupyterlab/commit/4e61e07d0a91145b53fbf96ac74b0387f6bc51f6) and [d5d961f](https://github.com/jupyterlab/jupyterlab/commit/d5d961f6e10a6442dddbf94d9a976b3897055a12)","format":"markdown","source":"ghsa"}],"published":"2026-06-19T15:11:17.000Z","modified":"2026-10-14T11:11:02.670Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","score":5.1,"rating":"MEDIUM"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","score":5.1,"rating":"MEDIUM"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-84"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"4.5.9","status":"affected"},{"type":"semver","version":"4.5.9","status":"unaffected"}],"vendor":"jupyterlab","product":"jupyterlab","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.5.9"}],"ecosystem":"PyPI","package":"jupyterlab","purl":"pkg:pypi/jupyterlab","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"4.5.9"}],"ecosystem":"Bitnami","package":"jupyterlab","purl":"pkg:bitnami/jupyterlab","source":"bitnami"}],"references":[{"url":"https://github.com/jupyterlab/jupyterlab/security/advisories/GHSA-vmhf-c436-hxj4","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://github.com/jupyterlab/jupyterlab/commit/4e61e07d0a91145b53fbf96ac74b0387f6bc51f6","tags":["patch","web"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://github.com/jupyterlab/jupyterlab/commit/d5d961f6e10a6442dddbf94d9a976b3897055a12","tags":["patch","web"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://www.vulncheck.com/advisories/jupyterlab-before-stored-xss-via-extension-manager","tags":["third-party-advisory","web"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/jupyterlab/jupyterlab","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/jupyterlab/jupyterlab/releases/tag/v4.5.9","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-67338","tags":["web"],"sources":["bitnami"]}],"credits":["krassowski","Yann-P"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-08-03T19:36:31.254Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-67338","url":"https://www.cve.org/CVERecord?id=CVE-2026-67338","licence":"CVE Terms of Use","modified":"2026-10-08T15:24:13.033Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vmhf-c436-hxj4","url":"https://github.com/advisories/GHSA-vmhf-c436-hxj4","licence":"CC-BY-4.0","modified":"2026-10-14T11:11:02.670Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-67338","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-67338","licence":"Public domain","modified":"2026-10-08T16:17:32.273Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-JUPYTERLAB-2026-67338","url":"https://osv.dev/vulnerability/BIT-JUPYTERLAB-2026-67338","licence":"Apache-2.0","modified":"2026-10-14T11:11:02.670Z"}],"updatedAt":"2026-11-25T22:59:30.795Z","epss":{"score":0.00305,"percentile":0.15614,"date":"2026-11-30T12:00:22.000Z"}}