# CVE-2019-10785: XSS in dojox due to insufficient escape in dojox.xmpp.util.xmlEncode

- Severity: Medium 6.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.85%, higher than 79% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-02-13T16:02:46.000Z
- Modified: 2026-12-02T07:11:05.362Z
- Also known as: GHSA-pg97-ww7h-5mjr
- Weaknesses: CWE-79
- Assigned by: snyk

## Description

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.

(As written by CVE List.)

## Affected

- dojox: all versions before version 1.16.1, 1.15.2, 1.14.5, 1.13.6, 1.12.7 and 1.11.9.
- dojox (npm): before 1.11.9; from 1.12.0 before 1.12.7; from 1.13.0 before 1.13.6; from 1.14.0 before 1.14.5; from 1.15.0 before 1.15.2; from 1.16.0 before 1.16.1
- linuxfoundation dojox: from 1.11.0 before 1.11.9; from 1.12.0 before 1.12.7; from 1.13.0 before 1.13.6; from 1.14.0 before 1.14.5; from 1.15.0 before 1.15.2; from 1.16.0 before 1.16.1
- debian debian_linux: 8.0

## Every score

- GitHub: 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`
- NVD: 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`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/dojo/dojox/security/advisories/GHSA-pg97-ww7h-5mjr> (exploit, third-party-advisory, web)
- <https://snyk.io/vuln/SNYK-JS-DOJOX-548257%2C>
- <https://lists.debian.org/debian-lts-announce/2020/02/msg00033.html> (mailing-list, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2019-10785> (advisory)
- <https://github.com/dojo/dojox/pull/315> (web)
- <https://github.com/dojo/dojox/commit/abd033a787c718abc1a390f480ac3ea61288e5ee> (web)
- <https://snyk.io/vuln/SNYK-JS-DOJOX-548257> (web)
- <https://snyk.io/vuln/SNYK-JS-DOJOX-548257,> (web)

## Sources

- CVE List: [CVE-2019-10785](https://www.cve.org/CVERecord?id=CVE-2019-10785), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-pg97-ww7h-5mjr](https://github.com/advisories/GHSA-pg97-ww7h-5mjr), CC-BY-4.0, modified 2026-12-02
- NVD: [CVE-2019-10785](https://nvd.nist.gov/vuln/detail/CVE-2019-10785), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2019-10785 · Whole record: https://cve.day/CVE-2019-10785.json · Rebuilt by cve.day 2026-12-02T07:47:24.685Z
