CVE-2018-15494: Dojox Dojox Vulnerable To Unescaped String Vulnerability

CRITICAL
Advisory Identifier: GHSA-84cm-x2q5-8225
CVSS 9.8
CWE-116
Published
Advisory Summary

CVE-2018-15494 is a CRITICAL (CVSS 9.8) dojox vulnerable to unescaped string vulnerability (CWE-116: Improper Encoding or Escaping of Output) affecting Dojox libraries in the npm ecosystem. The issue involves dojox vulnerable to unescaped string injection. Remediation is available by upgrading affected packages to version 1.14.0.

CVE-2018-15494 at a Glance

CVE Identifier CVE-2018-15494
GHSA Identifier GHSA-84cm-x2q5-8225
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-116: Improper Encoding or Escaping of Output
Affected Product Dojox
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 9.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2018-15494

To remediate this vulnerability, upgrade all affected Dojox dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

dojox fixed: 1.14.0
npm install dojox@1.14.0
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 dojox

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2018-15494, inspect your project dependencies using npm:

npm ls dojox

Analyze the terminal output to locate any version of Dojox in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.14.0), your application is affected.

Note: The npm ls dojox 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-116: Improper Encoding or Escaping of Output, where the product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. as a result, the intended structure of the message is not preserved. In Dojox, 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

In Dojo Toolkit before 1.14.0, there is unescaped string injection in dojox/Grid/DataGrid.

CVE-2018-15494 Affected Dojox Versions

1 component(s)
Fixed Versions:
1.14.0
Product / Package Ecosystem Affected Versions Fixed Version
dojox
npm
< 1.14.0
1.14.0

References

Frequently Asked Questions

What is CVE-2018-15494?
CVE-2018-15494 is a security vulnerability in Dojox involving dojox vulnerable to unescaped string injection under CWE-116: Improper Encoding or Escaping of Output.
Which Dojox versions are affected?
Affected versions include releases prior to 1.14.0 across affected packages: dojox.
What version fixes CVE-2018-15494?
Upgrading to 1.14.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is dojox affected?
Yes, dojox is affected in releases prior to 1.14.0. Upgrade your dependency to 1.14.0 or later.
What is the CVSS score of CVE-2018-15494?
CVE-2018-15494 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2018-15494?
CVE-2018-15494 is classified under CWE-116: Improper Encoding or Escaping of Output (The product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved.).
How can I check npm dependencies for CVE-2018-15494?
Run the dependency tree command: 'npm ls dojox'. 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-84cm-x2q5-8225",
  "modified" : "2023-09-27T12:57:00Z",
  "published" : "2018-10-15T22:03:48Z",
  "aliases" : [ "CVE-2018-15494" ],
  "summary" : "dojox vulnerable to unescaped string injection",
  "details" : "In Dojo Toolkit before 1.14.0, there is unescaped string injection in dojox/Grid/DataGrid.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "dojox"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.14.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-15494"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/dojo/dojox/pull/283"
  }, {
    "type" : "WEB",
    "url" : "https://dojotoolkit.org/blog/dojo-1-14-released"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-84cm-x2q5-8225"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/dojo/dojox"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2018/09/msg00002.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-116" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:24:12Z",
    "nvd_published_at" : null
  }
}