Directus doesn't redact tokens in Flow logs
Description
Directus is a real-time API and App dashboard for managing SQL database content. Starting in version 9.0.0 and prior to version 11.9.0, when using Directus Flows with the WebHook trigger all incoming request details are logged including security sensitive data like access and refresh tokens in cookies. Malicious admins with access to the logs can hijack the user sessions within the token expiration time of them triggering the Flow. Version 11.9.0 fixes the issue.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
directusnpm | < 11.9.0 | 11.9.0 |
Affected products
1Patches
1859f664f56fbImprove redaction in Flows' Log to Console operation (#25355)
2 files changed · +28 −1
api/src/flows.ts+23 −1 modified@@ -429,10 +429,32 @@ class FlowManager { const handler = this.operations.get(operation.type)!; + let optionData = keyedData; + + if (operation.type === 'log') { + optionData = redactObject( + keyedData, + { + keys: [ + ['**', 'headers', 'authorization'], + ['**', 'headers', 'cookie'], + ['**', 'query', 'access_token'], + ['**', 'payload', 'password'], + ['**', 'payload', 'token'], + ['**', 'payload', 'tfa_secret'], + ['**', 'payload', 'external_identifier'], + ['**', 'payload', 'auth_data'], + ], + values: this.envs, + }, + getRedactedString, + ); + } + let options = operation.options; try { - options = applyOptionsData(options, keyedData); + options = applyOptionsData(options, optionData); let result = await handler(options, { services,
.changeset/tame-ears-doubt.md+5 −0 added@@ -0,0 +1,5 @@ +--- +'@directus/api': patch +--- + +Improved redaction in Flows' Log to Console operation
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
7- github.com/advisories/GHSA-f24x-rm6g-3w5vghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-53886ghsaADVISORY
- github.com/directus/directus/commit/22be460c76957708d67fdd52846a9ad1cbb083fbmitrex_refsource_MISC
- github.com/directus/directus/commit/859f664f56fb50401c407b095889cea38ff580e5ghsaWEB
- github.com/directus/directus/pull/25354mitrex_refsource_MISC
- github.com/directus/directus/releases/tag/v11.9.0ghsax_refsource_MISCWEB
- github.com/directus/directus/security/advisories/GHSA-f24x-rm6g-3w5vghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.