Skip to content

Directus has open redirect in SAML

Moderate severity GitHub Reviewed Published Jan 6, 2026 in directus/directus • Updated Jan 7, 2026

Package

npm @directus/api (npm)

Affected versions

< 32.1.1

Patched versions

32.1.1
npm directus (npm)
< 11.14.0
11.14.0

Description

Security Advisory: Open Redirect in Directus SAML Authentication

Summary

An open redirect vulnerability exists in the Directus SAML authentication callback endpoint. The RelayState parameter is used in redirects without proper validation against an allowlist of permitted domains.

Vulnerability Description

During SAML authentication, the RelayState parameter is intended to preserve the user's original destination. However, while the login initiation flow validates redirect targets against allowed domains, this validation is not applied to the callback endpoint. This allows an attacker to craft a malicious authentication request that redirects users to an arbitrary external URL upon completion.

The vulnerability is present in both the success and error handling paths of the callback.

Impact

  • Phishing: Users can be redirected to attacker-controlled sites that mimic legitimate login pages
  • Credential theft: Chained attacks may leverage the redirect to capture OAuth tokens or authorization codes
  • Trust erosion: Users may lose confidence in the application's security posture

This vulnerability can be exploited without authentication.

References

@br41nslug br41nslug published to directus/directus Jan 6, 2026
Published to the GitHub Advisory Database Jan 6, 2026
Reviewed Jan 6, 2026
Last updated Jan 7, 2026

Severity

Moderate

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N

EPSS score

Weaknesses

URL Redirection to Untrusted Site ('Open Redirect')

The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect. Learn more on MITRE.

CVE ID

CVE-2026-22032

GHSA ID

GHSA-3573-4c68-g8cc

Source code

Credits

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.