{"id":"CVE-2019-10785","aliases":["CVE-2019-10785","GHSA-pg97-ww7h-5mjr"],"related":[],"kind":"vulnerability","state":"published","title":"XSS in dojox due to insufficient escape in dojox.xmpp.util.xmlEncode","summary":"dojox is vulnerable to Cross-site Scripting in all versions before version 1.16.1, 1.15.2, 1.14.5, 1.13.6, 1.12.7 and 1.11.9. This is due to dojox.xmpp.util.xmlEncode only encoding the first occurrence of each character, not all of them.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"dojox is vulnerable to Cross-site Scripting in all versions before version 1.16.1, 1.15.2, 1.14.5, 1.13.6, 1.12.7 and 1.11.9. This is due to dojox.xmpp.util.xmlEncode only encoding the first occurrence of each character, not all of them.","source":"cvelist"},{"lang":"en","text":"### Impact\n_What kind of vulnerability is it? Who is impacted?_\n\nPotential XSS vulnerability for users of `dojox/xmpp` and `dojox/dtl`.\n\n### Patches\n_Has the problem been patched? What versions should users upgrade to?_\n\nYes, patches are available for the 1.11 through 1.16 versions. Users should upgrade to one of these versions of Dojo:\n\n* 1.16.1\n* 1.15.2\n* 1.14.5\n* 1.13.6\n* 1.12.7\n* 1.11.9\n\nUsers of Dojo 1.10.x and earlier should review this change and determine if it impacts them, and backport the change as appropriate.\n\n### Workarounds\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\n\nThe change applied in https://github.com/dojo/dojox/pull/315 could get added separately as a patch.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [dojo/dojox](https://github.com/dojo/dojox/)","format":"markdown","source":"ghsa"},{"lang":"es","text":"dojox es vulnerable a un ataque de tipo Cross-site Scripting en todas las versiones anteriores a la versión 1.16.1, 1.15.2, 1.14.5, 1.13.6, 1.12.7 y 1.11.9. Esto es debido a que la función dojox.xmpp.util.xmlEncode solo codifica la primera aparición de cada carácter, no todos.","source":"nvd"}],"published":"2020-02-13T16:02:46.000Z","modified":"2026-12-02T07:11:05.362Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"all versions before version 1.16.1, 1.15.2, 1.14.5, 1.13.6, 1.12.7 and 1.11.9.","status":"affected"}],"product":"dojox","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.11.9"}],"ecosystem":"npm","package":"dojox","purl":"pkg:npm/dojox","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.12.0","status":"affected","fixed":"1.12.7"}],"ecosystem":"npm","package":"dojox","purl":"pkg:npm/dojox","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.13.0","status":"affected","fixed":"1.13.6"}],"ecosystem":"npm","package":"dojox","purl":"pkg:npm/dojox","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.14.0","status":"affected","fixed":"1.14.5"}],"ecosystem":"npm","package":"dojox","purl":"pkg:npm/dojox","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.15.0","status":"affected","fixed":"1.15.2"}],"ecosystem":"npm","package":"dojox","purl":"pkg:npm/dojox","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.16.0","status":"affected","fixed":"1.16.1"}],"ecosystem":"npm","package":"dojox","purl":"pkg:npm/dojox","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"1.11.0","fixed":"1.11.9"},{"status":"affected","introduced":"1.12.0","fixed":"1.12.7"},{"status":"affected","introduced":"1.13.0","fixed":"1.13.6"},{"status":"affected","introduced":"1.14.0","fixed":"1.14.5"},{"status":"affected","introduced":"1.15.0","fixed":"1.15.2"},{"status":"affected","introduced":"1.16.0","fixed":"1.16.1"}],"vendor":"linuxfoundation","product":"dojox","cpe":"cpe:2.3:a:linuxfoundation:dojox:*:*:*:*:*:node.js:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"8.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-DOJOX-548257%2C","tags":["x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/dojo/dojox/security/advisories/GHSA-pg97-ww7h-5mjr","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/02/msg00033.html","tags":["mailing-list","third-party-advisory","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-10785","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/dojo/dojox/pull/315","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/dojo/dojox/commit/abd033a787c718abc1a390f480ac3ea61288e5ee","tags":["web"],"sources":["ghsa"]},{"url":"https://snyk.io/vuln/SNYK-JS-DOJOX-548257","tags":["web"],"sources":["ghsa"]},{"url":"https://snyk.io/vuln/SNYK-JS-DOJOX-548257,","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2019-10785","url":"https://www.cve.org/CVERecord?id=CVE-2019-10785","licence":"CVE Terms of Use","modified":"2024-08-04T22:32:01.603Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-pg97-ww7h-5mjr","url":"https://github.com/advisories/GHSA-pg97-ww7h-5mjr","licence":"CC-BY-4.0","modified":"2026-12-02T07:11:05.362Z"},{"source":"nvd","name":"NVD","id":"CVE-2019-10785","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-10785","licence":"Public domain","modified":"2026-06-17T02:11:40.140Z"}],"updatedAt":"2026-12-02T07:47:24.685Z","epss":{"score":0.01845,"percentile":0.79659,"date":"2026-12-01T12:00:22.000Z"}}