GHSA-p6rw-44q7-3fw4 is a high-severity (CVSS 8.7) Cross-site Scripting (XSS) vulnerability in nbdime. O3 Security confirms whether GHSA-p6rw-44q7-3fw4 is actually reachable in your code before you act, and blocks exploitation at runtime until you patch.
Stored XSS in Jupyter nbdime
Real-World Exposure
How broadly this vulnerability is actually deployed: weekly install volume shows current usage, a proxy for how much of the ecosystem is exposed.
nbdimenpmnbdime-jupyterlabnpmDescription
Impact
Improper handling of user controlled input caused a stored cross-site scripting (XSS) vulnerability. All previous versions of nbdime are affected.
Patches
Security patches will be released for each of the major versions of the nbdime packages since version 1.x of the nbdime python package.
Python
- nbdime 1.x: Patched in v. 1.1.1
- nbdime 2.x: Patched in v. 2.1.1
- nbdime 3.x: Patched in v. 3.1.1
npm
- nbdime 6.x version: Patched in 6.1.2
- nbdime 5.x version: Patched in 5.0.2
- nbdime-jupyterlab 1.x version: Patched in 1.0.1
- nbdime-jupyterlab 2.x version: Patched in 2.1.1
For more information
If you have any questions or comments about this advisory email us at [email protected].
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦npm | nbdime | all versions | 5.0.2 |
| 📦npm | nbdime | ≥ 6.0.0&&< 6.1.2 | 6.1.2 |
| 📦npm | nbdime-jupyterlab | all versions | 1.0.1 |
| 📦npm | nbdime-jupyterlab | ≥ 2.0.0&&< 2.1.1 | 2.1.1 |
| 🐍PyPI | nbdime | all versions | 1.1.1 |
| 🐍PyPI | nbdime | ≥ 2.0.0&&< 2.1.1 | 2.1.1 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for nbdime. O3's reachability analysis confirms whether the vulnerable code path is actually invoked in your application, so you act on real exposure instead of every transitive match.
Fix
Update nbdime to 5.0.2 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-p6rw-44q7-3fw4 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
How O3 protects you
O3 pinpoints whether GHSA-p6rw-44q7-3fw4 is reachable in your code and exactly where to fix it, then blocks exploitation in production at runtime until the patched version is deployed.
Tailored to GHSA-p6rw-44q7-3fw4. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.
Frequently Asked Questions
Is GHSA-p6rw-44q7-3fw4 in your dependencies?
O3 detects GHSA-p6rw-44q7-3fw4 across npm, PyPI dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.