VYPR
Moderate severityNVD Advisory· Published Jul 14, 2025· Updated Jul 15, 2025

Directus doesn't redact tokens in Flow logs

CVE-2025-53886

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.

PackageAffected versionsPatched versions
directusnpm
< 11.9.011.9.0

Affected products

1

Patches

1
859f664f56fb

Improve redaction in Flows' Log to Console operation (#25355)

https://github.com/directus/directusBrainslugJun 25, 2025via ghsa
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

News mentions

0

No linked articles in our index yet.