PT-2026-1662
CVE-2026-21858
·
Published
2026-01-07
·
Updated
2026-11-15
Description by
CVSS 3.1
10
CriticalMetricsAV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
Name of the Vulnerable Software and Affected Versions
n8n versions 1.65.0 through 1.120.x
Description
A critical issue in the n8n workflow automation platform allows an unauthenticated remote attacker to access files on the underlying server. The flaw stems from a Content-Type mismatch in how the platform processes form-based webhook requests. Specifically, the middleware selects a parser based on the Content-Type header, but the Form Webhook Node fails to validate this header. An attacker can change the Content-Type from
multipart/form-data to application/json and send a crafted payload to override the req.body.files object, including the file path. This allows arbitrary file reads, including the local SQLite database and configuration files containing encryption secrets, which can be used to forge admin session cookies. Once authenticated, an attacker can use the Execute Command node to achieve remote code execution. Approximately 100,000 servers worldwide are potentially affected. Real-world scanning campaigns have been observed using a specialized user agent n8n-scanner/1.0 to identify vulnerable endpoints.Recommendations
Update n8n to version 1.121.0 or later.
As a temporary mitigation, restrict or disable publicly accessible webhook and form endpoints.
Require authentication on all public forms.
Avoid exposing n8n directly to the internet without a VPN or additional authentication layers.
If a prior compromise is suspected, rotate all credentials and API keys stored within the platform.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Found an issue in the description? Have something to add? Feel free to write us 👾