CVE-2026-45707: N8n Workflow Connection Index Shift

Filtering out all empty arrays from workflow connections incorrectly shifts subsequent connection indices. In multi-output nodes, this corrupts the mapping between array indices and output ports, potentially bypassing logical conditions or redirecting data. To maintain index stability, only strip trailing empty arrays (e.g., using a while loop with .pop()).

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0JS
greprules fetch cve-2026-45707-n8n-workflow-connection-index-shift --engine opengrep

Description

Filtering out all empty arrays from workflow connections incorrectly shifts subsequent connection indices. In multi-output nodes, this corrupts the mapping between array indices and output ports, potentially bypassing logical conditions or redirecting data. To maintain index stability, only strip trailing empty arrays (e.g., using a while loop with .pop()).