CVE-2020-4051: Dijit Cross-Site Scripting Vulnerability

LOW
Advisory Identifier: GHSA-cxjc-r2fp-7mq6
CVSS 3.7
CWE-79
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2020-4051
GHSA Identifier GHSA-cxjc-r2fp-7mq6
Severity LOW
CVSS v3.1 Base Score 3.7
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Dijit
Package Ecosystem npm
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (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.

dijit fixed: 1.11.11
npm install dijit@1.11.11
dijit fixed: 1.12.9
npm install dijit@1.12.9
dijit fixed: 1.13.8
npm install dijit@1.13.8
dijit fixed: 1.14.7
npm install dijit@1.14.7
dijit fixed: 1.15.4
npm install dijit@1.15.4
dijit fixed: 1.16.3
npm install dijit@1.16.3
Verify Direct and Transitive Dependencies

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

### Impact XSS possible for users of the Dijit Editor's LinkDialog plugin ### Patches Yes, 1.11.11, 1.12.9, 1.13.8, 1.14.7, 1.15.4, 1.16.3 ### Workarounds Users may apply the patch made in these releases. ### For more information If you have any questions or comments about this advisory, open an issue in [dojo/dijit](https://github.com/dojo/dijit/)

CVE-2020-4051 Affected Dijit Versions

6 component(s)
Fixed Versions:
1.11.111.12.91.13.81.14.71.15.41.16.3
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?
CVE-2020-4051 is a security vulnerability in Dijit involving Cross-site Scripting in dijit editor's LinkDialog plugin under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Dijit versions are affected?
Affected versions include releases prior to 1.11.11, 1.12.9, 1.13.8, 1.14.7, 1.15.4, 1.16.3 across affected packages: dijit.
What version fixes CVE-2020-4051?
Upgrading to 1.11.11, 1.12.9, 1.13.8, 1.14.7, 1.15.4, 1.16.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is dijit affected?
Yes, dijit is affected in releases prior to 1.11.11, 1.12.9, 1.13.8, 1.14.7, 1.15.4, 1.16.3. Upgrade your dependency to 1.11.11, 1.12.9, 1.13.8, 1.14.7, 1.15.4, 1.16.3 or later.
What is the CVSS score of CVE-2020-4051?
CVE-2020-4051 has a CVSS v3.1 base score of 3.7 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2020-4051?
CVE-2020-4051 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (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.).
How can I check npm dependencies for CVE-2020-4051?
Run the dependency tree command: 'npm ls dijit'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}