CVE-2026-21858 n8n Vulnerable to Unauthenticated File Access via Improper Webhook Request Handling

Critical 10.0 Published Updated

Unauthenticated attackers can access server files via vulnerable form-based workflows in n8n, exposing sensitive information.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-21858?

CVE-2026-21858 is a critical path traversal vulnerability in N8n N8n, published on 7 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

n8n is an open source workflow automation platform. Versions starting with 1.65.0 and below 1.121.0 enable an attacker to access files on the underlying server through execution of certain form-based workflows. A vulnerable workflow could grant access to an unauthenticated remote attacker, resulting in exposure of sensitive information stored on the system and may enable further compromise depending on deployment configuration and workflow usage. This issue is fixed in version 1.121.0.

Weakness: CWE-20

Which versions are affected by CVE-2026-21858?

2 open source packages ship an affected version, including n8n. It affects 1 product.

PackageAffectedFixed in
n8n npmFrom 1.65.01.121.0
n8n npmFrom 1.65.01.121.0

Products include N8n N8n.

How do I fix CVE-2026-21858?

Upgrade n8n to 1.121.0 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-21858 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-21858 exists.

Public exploit code: 1 Nuclei template and 17 proofs of concept on GitHub.

All N8n N8n vulnerabilities

Sources

Also known as GHSA-v4pr-fm98-w9pg.

Is CVE-2026-21858 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free