CVE-2024-28239:
URL Redirection to Untrusted Site in OAuth2/OpenID in directus
5.4
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.45762%
CWE
Published
3/12/2024
Updated
3/13/2024
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
directus | npm | < 10.10.0 | 10.10.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from authentication route handlers that accepted unvalidated 'redirect' parameters. All three drivers (OAuth2, OpenID, SAML) contained similar patterns where the redirect parameter from the request query was directly used without proper allow-list validation. The commit diff shows these functions were modified to add isLoginRedirectAllowed
checks, confirming they were previously vulnerable. The attack vector specifically targets these authentication entry points where redirects are processed after successful logins.