# CVE-2019-16222: WordPress before 5.2.3 has an issue with URL sanitization in wpksesbadprotocolonce in wp-includes/kses.php that can lead to cross-site scri…

- 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): 2.20%, higher than 83% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2019-09-11T13:07:15.000Z
- Modified: 2026-06-17T02:21:55.710Z
- Weaknesses: CWE-79
- Assigned by: mitre

## Description

WordPress before 5.2.3 has an issue with URL sanitization in wp_kses_bad_protocol_once in wp-includes/kses.php that can lead to cross-site scripting (XSS) attacks.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- wordpress wordpress: before 5.2.3
- debian debian_linux: 8.0; 9.0; 10.0

## Every score

- 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://wpvulndb.com/vulnerabilities/9867> (exploit, third-party-advisory)
- <https://wordpress.org/news/2019/09/wordpress-5-2-3-security-and-maintenance-release/> (release-notes, vendor-advisory)
- <https://core.trac.wordpress.org/changeset/45997> (patch, vendor-advisory)
- <https://github.com/WordPress/WordPress/commit/30ac67579559fe42251b5a9f887211bf61a8ed68> (patch, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2019/10/msg00023.html> (mailing-list, third-party-advisory)
- <https://seclists.org/bugtraq/2020/Jan/8> (mailing-list, third-party-advisory)
- <https://www.debian.org/security/2020/dsa-4599> (third-party-advisory, vendor-advisory)
- <https://www.debian.org/security/2020/dsa-4677> (third-party-advisory, vendor-advisory)

## Sources

- CVE List: [CVE-2019-16222](https://www.cve.org/CVERecord?id=CVE-2019-16222), CVE Terms of Use, modified 2024-08-05
- NVD: [CVE-2019-16222](https://nvd.nist.gov/vuln/detail/CVE-2019-16222), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2019-16222 · Whole record: https://cve.day/CVE-2019-16222.json · Rebuilt by cve.day 2026-11-25T22:57:46.907Z
