CVE-2019-10785
XSS in dojox due to insufficient escape in dojox.xmpp.util.xmlEncode
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
Exploit likelihood
What each source reports
NVD Score used
6.1
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.
- Record
CVE-2019-10785- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:N/I:P/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2019-10785- Updated
- 2026-11-02
EUVDEUVD-2020-0309 No score
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.
- Record
EUVD-2020-0309- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-pg97-ww7h-5mjr
6.1
XSS in dojox due to insufficient escape in dojox.xmpp.util.xmlEncode
Impact
What kind of vulnerability is it? Who is impacted?
Potential XSS vulnerability for users of dojox/xmpp and dojox/dtl.
Patches
Has the problem been patched? What versions should users upgrade to?
Yes, patches are available for the 1.11 through 1.16 versions. Users should upgrade to one of these versions of Dojo:
- 1.16.1
- 1.15.2
- 1.14.5
- 1.13.6
- 1.12.7
- 1.11.9
Users of Dojo 1.10.x and earlier should review this change and determine if it impacts them, and backport the change as appropriate.
Workarounds
Is there a way for users to fix or remediate the vulnerability without upgrading?
The change applied in https://github.com/dojo/dojox/pull/315 could get added separately as a patch.
For more information
If you have any questions or comments about this advisory:
- Open an issue in dojo/dojox
- Record
GHSA-pg97-ww7h-5mjr- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
OSV
6.1
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.
- Record
CVE-2019-10785- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Updated
- 2026-11-02
OSVDEBIAN-CVE-2019-10785
6.1
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.
- Record
DEBIAN-CVE-2019-10785- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Updated
- 2026-11-02
Show 4 moreShow less
OSVGHSA-pg97-ww7h-5mjr
6.1
XSS in dojox due to insufficient escape in dojox.xmpp.util.xmlEncode
Impact
What kind of vulnerability is it? Who is impacted?
Potential XSS vulnerability for users of dojox/xmpp and dojox/dtl.
Patches
Has the problem been patched? What versions should users upgrade to?
Yes, patches are available for the 1.11 through 1.16 versions. Users should upgrade to one of these versions of Dojo:
- 1.16.1
- 1.15.2
- 1.14.5
- 1.13.6
- 1.12.7
- 1.11.9
Users of Dojo 1.10.x and earlier should review this change and determine if it impacts them, and backport the change as appropriate.
Workarounds
Is there a way for users to fix or remediate the vulnerability without upgrading?
The change applied in https://github.com/dojo/dojox/pull/315 could get added separately as a patch.
For more information
If you have any questions or comments about this advisory:
- Open an issue in dojo/dojox
- Record
GHSA-pg97-ww7h-5mjr- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Weakness
- CWE-79
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2019-10785
6.1
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.
- Record
UBUNTU-CVE-2019-10785- CVSS 3.1
- 6.1 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Updated
- 2026-11-02
OSVMGASA-2020-0126 No score
Updated dojo packages fix security vulnerability
Updated dojo package fixes security vulnerability:
dojox was vulnerable to Cross-site Scripting. This was due to dojox.xmpp.util.xmlEncode only encoding the first occurrence of each character, not all of them (CVE-2019-10785).
- Record
MGASA-2020-0126- Updated
- 2026-11-02
OSVUSN-7569-1 No score
dojo vulnerabilities
It was discovered that Dojo did not correctly handle DataGrids. An attacker could possibly use this issue to execute arbitrary code. This issue only affected Ubuntu 16.04 LTS and Ubuntu 18.04 LTS. (CVE-2018-15494)
It was discovered that Dojo was vulnerable to prototype pollution. An attacker could possibly use this issue to execute arbitrary code. (CVE-2021-23450)
Jonathan Leitschuh discovered that Dojo did not correctly sanitize certain inputs. An attacker could possibly use this issue to execute a cross-site scripting (XSS) attack. This issue only affected Ubuntu 16.04 LTS, Ubuntu 18.04 LTS and Ubuntu 20.04 LTS. (CVE-2019-10785, CVE-2020-4051)
- Record
USN-7569-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
dojoxnpm |
before 1.11.9 | 1.11.9 |
dojoxnpm |
1.12.0 up to 1.12.7 | 1.12.7 |
dojoxnpm |
1.13.0 up to 1.13.6 | 1.13.6 |
dojoxnpm |
1.14.0 up to 1.14.5 | 1.14.5 |
dojoxnpm |
1.15.0 up to 1.15.2 | 1.15.2 |
dojoxnpm |
1.16.0 to 1.16.0 | 1.16.1 |
dojoDebian:12 |
before 1.15.2+dfsg1-1 | 1.15.2+dfsg1-1 |
dojoDebian:13 |
before 1.15.2+dfsg1-1 | 1.15.2+dfsg1-1 |
dojoDebian:14 |
before 1.15.2+dfsg1-1 | 1.15.2+dfsg1-1 |
dojoDebian:8 |
before 1.10.2+dfsg-1+deb8u2, plus listed versions 1.10.2+dfsg-11.10.2+dfsg-1+deb8u1 |
1.10.2+dfsg-1+deb8u2 |
Show 8 moreShow less
| Package | Affected | Fixed |
|---|---|---|
dojoxnpm |
1.16.0 up to 1.16.1 | 1.16.1 |
dojoMageia:7 |
before 1.14.5-1.mga7 | 1.14.5-1.mga7 |
dojoUbuntu:Pro:16.04:LTS |
before 1.10.4+dfsg-2ubuntu0.1~esm1, plus listed versions 1.10.4+dfsg-2 |
1.10.4+dfsg-2ubuntu0.1~esm1 |
dojoUbuntu:18.04:LTS |
All versions, plus listed versions 1.11.0+dfsg-1 |
None known |
dojoUbuntu:Pro:20.04:LTS |
before 1.15.0+dfsg1-1ubuntu0.1~esm1, plus listed versions 1.14.2+dfsg1-11.15.0+dfsg1-1 |
1.15.0+dfsg1-1ubuntu0.1~esm1 |
dojoUbuntu:Pro:16.04:LTS From an advisory covering 4 CVEs |
before 1.10.4+dfsg-2ubuntu0.1~esm1, plus listed versions 1.10.4+dfsg-2 |
1.10.4+dfsg-2ubuntu0.1~esm1 |
dojoUbuntu:Pro:20.04:LTS From an advisory covering 4 CVEs |
before 1.15.0+dfsg1-1ubuntu0.1~esm1, plus listed versions 1.14.2+dfsg1-11.15.0+dfsg1-1 |
1.15.0+dfsg1-1ubuntu0.1~esm1 |
dojoUbuntu:22.04:LTS From an advisory covering 4 CVEs |
before 1.15.4+dfsg1-1ubuntu0.1, plus listed versions 1.15.4+dfsg1-1 |
1.15.4+dfsg1-1ubuntu0.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases, products | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2019-10785 is a medium vulnerability (CVSS 6.1) in Dojo Dojox, published February 13, 2020. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.85%, the 79th percentile. Fixed in dojox 1.11.9.
References
snyk.io/vuln/SNYK-JS-DOJOX-548257%2C
github.com/dojo/dojox/security/advisories/GHSA-pg97-ww7h-5mjr
lists.debian.org/debian-lts-announce/2020/02/msg00033.html
github.com/dojo/dojox/pull/315
github.com/dojo/dojox/commit/abd033a787c718abc1a390f480ac3ea61288e5ee
nvd.nist.gov/vuln/detail/CVE-2019-10785
Show 13 moreShow less
snyk.io/vuln/SNYK-JS-DOJOX-548257
snyk.io/vuln/SNYK-JS-DOJOX-548257,
github.com/advisories/GHSA-pg97-ww7h-5mjr
security-tracker.debian.org/tracker/CVE-2019-10785
advisories.mageia.org/MGASA-2020-0126.html
bugs.mageia.org/show_bug.cgi?id=26287
debian.org/lts/security/2020/dla-2127
ubuntu.com/security/CVE-2019-10785
cve.org/CVERecord?id=CVE-2019-10785
ubuntu.com/security/notices/USN-7569-1
ubuntu.com/security/CVE-2018-15494
ubuntu.com/security/CVE-2020-4051
ubuntu.com/security/CVE-2021-23450