# CVE-2019-20042: In wp-includes/formatting.php in WordPress 3.7 to 5.3.0, the function wptargetedlinkrel() can be used in a particular way to result in a st…

- 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.76%, higher than 86% of CVEs (2026-12-01)
- Published: 2019-12-27T07:14:37.000Z
- Modified: 2026-06-17T02:29:52.977Z
- Weaknesses: CWE-79
- Assigned by: mitre

## Description

In wp-includes/formatting.php in WordPress 3.7 to 5.3.0, the function wp_targeted_link_rel() can be used in a particular way to result in a stored cross-site scripting (XSS) vulnerability. This has been patched in WordPress 5.3.1, along with all the previous WordPress versions from 3.7 to 5.3 via a minor release.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- wordpress wordpress: from 3.7 before 5.3.1
- debian debian_linux: 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/9975> (release-notes, third-party-advisory)
- <https://wordpress.org/news/2019/12/wordpress-5-3-1-security-and-maintenance-release/> (release-notes, vendor-advisory)
- <https://core.trac.wordpress.org/changeset/46894/trunk> (patch)
- <https://github.com/WordPress/wordpress-develop/commit/1f7f3f1f59567e2504f0fbebd51ccf004b3ccb1d> (patch)
- <https://blog.ripstech.com/filter/vulnerabilities/> (not-applicable)
- <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://github.com/WordPress/wordpress-develop/security/advisories/GHSA-xvg2-m2f4-83m7> (third-party-advisory)
- <https://hackerone.com/reports/509930> (third-party-advisory)
- <https://www.debian.org/security/2020/dsa-4677> (third-party-advisory, vendor-advisory)

## Sources

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

---

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