CVE-2020-4051 is a medium-severity (CVSS 5.4) Cross-site Scripting (XSS) vulnerability in dijit. O3 Security confirms whether CVE-2020-4051 is actually reachable in your code before you act, and blocks exploitation at runtime until you patch.
Cross-site Scripting in dijit editor's LinkDialog plugin
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.
dijitnpmDescription
In Dijit before versions 1.11.11, and greater than or equal to 1.12.0 and less than 1.12.9, and greater than or equal to 1.13.0 and less than 1.13.8, and greater than or equal to 1.14.0 and less than 1.14.7, and greater than or equal to 1.15.0 and less than 1.15.4, and greater than or equal to 1.16.0 and less than 1.16.3, there is a cross-site scripting vulnerability in the Editor's LinkDialog plugin. This has been fixed in 1.11.11, 1.12.9, 1.13.8, 1.14.7, 1.15.4, 1.16.3.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦npm | dijit | all versions | 1.11.11 |
| 📦npm | dijit | ≥ 1.12.0&&< 1.12.9 | 1.12.9 |
| 📦npm | dijit | ≥ 1.13.0&&< 1.13.8 | 1.13.8 |
| 📦npm | dijit | ≥ 1.14.0&&< 1.14.7 | 1.14.7 |
| 📦npm | dijit | ≥ 1.15.0&&< 1.15.4 | 1.15.4 |
| 📦npm | dijit | ≥ 1.16.0&&< 1.16.3 | 1.16.3 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for dijit. 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 dijit to 1.11.11 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2020-4051 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 CVE-2020-4051 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 CVE-2020-4051. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.
Frequently Asked Questions
Is CVE-2020-4051 in your dependencies?
O3 detects CVE-2020-4051 across npm dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.