CVE-2020-4051: Dijit Cross-Site Scripting Vulnerability
LOWCVE-2020-4051 is a LOW (CVSS 3.7) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Dijit libraries in the npm ecosystem. The issue involves cross-site scripting in dijit editor's linkdialog plugin. Remediation is available by upgrading affected packages to version 1.11.11, 1.12.9, 1.13.8, 1.14.7, 1.15.4, 1.16.3.
CVE-2020-4051 at a Glance
Security Impact
CVSS: 3.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N).
How to Fix CVE-2020-4051
To remediate this vulnerability, upgrade all affected Dijit dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install dijit@1.11.11
npm install dijit@1.12.9
npm install dijit@1.13.8
npm install dijit@1.14.7
npm install dijit@1.15.4
npm install dijit@1.16.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls dijit
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2020-4051, inspect your project dependencies using npm:
npm ls dijit
Analyze the terminal output to locate any version of Dijit in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.11.11), your application is affected.
Note: The npm ls dijit command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where 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. In Dijit, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2020-4051 Affected Dijit Versions
6 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
dijit
|
npm |
< 1.11.11
|
1.11.11
|
|
dijit
|
npm |
≥ 1.12.0
< 1.12.9
|
1.12.9
|
|
dijit
|
npm |
≥ 1.13.0
< 1.13.8
|
1.13.8
|
|
dijit
|
npm |
≥ 1.14.0
< 1.14.7
|
1.14.7
|
|
dijit
|
npm |
≥ 1.15.0
< 1.15.4
|
1.15.4
|
|
dijit
|
npm |
≥ 1.16.0
< 1.16.3
|
1.16.3
|
References
Frequently Asked Questions
What is CVE-2020-4051?
Which Dijit versions are affected?
What version fixes CVE-2020-4051?
Is dijit affected?
What is the CVSS score of CVE-2020-4051?
What CWE is associated with CVE-2020-4051?
How can I check npm dependencies for CVE-2020-4051?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-cxjc-r2fp-7mq6",
"modified" : "2023-03-01T01:09:25Z",
"published" : "2020-06-15T21:53:12Z",
"aliases" : [ "CVE-2020-4051" ],
"summary" : "Cross-site Scripting in dijit editor's LinkDialog plugin ",
"details" : "### Impact\nXSS possible for users of the Dijit Editor's LinkDialog plugin\n\n### Patches\nYes, 1.11.11, 1.12.9, 1.13.8, 1.14.7, 1.15.4, 1.16.3\n\n### Workarounds\nUsers may apply the patch made in these releases.\n\n\n### For more information\nIf you have any questions or comments about this advisory, open an issue in [dojo/dijit](https://github.com/dojo/dijit/)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "dijit"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.11.11"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "dijit"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.12.0"
}, {
"fixed" : "1.12.9"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "dijit"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.13.0"
}, {
"fixed" : "1.13.8"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "dijit"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.14.0"
}, {
"fixed" : "1.14.7"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "dijit"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.15.0"
}, {
"fixed" : "1.15.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "dijit"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.16.0"
}, {
"fixed" : "1.16.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/dojo/dijit/security/advisories/GHSA-cxjc-r2fp-7mq6"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-4051"
}, {
"type" : "WEB",
"url" : "https://github.com/dojo/dijit/commit/462bdcd60d0333315fe69ab4709c894d78f61301"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2023/01/msg00030.html"
}, {
"type" : "WEB",
"url" : "https://security.netapp.com/advisory/ntap-20201023-0003"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/security-alerts/cpuoct2020.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-15T21:52:48Z",
"nvd_published_at" : "2020-06-15T22:15:00Z"
}
}