AgentbeamBeta
AI agent vulnerability · n8n

CVE-2026-27493: n8n has Unauthenticated Expression Evaluation via Form Node

criticalCVSS 4.0 9.5 · 3.1 9.0GHSA-75g8-rv7v-32f7

n8n Form nodes can evaluate attacker-supplied n8n expressions when a field starts with an equals sign and interpolates a value from an unauthenticated form submission. Chained with a sandbox escape it could reach code execution. Fixed in n8n 1.123.22, 2.9.3 and 2.10.1.

Published Feb 25, 2026 · Updated Feb 27, 2026 · Analysis Nov 23, 2026

What an attacker can do

This is a second-order expression injection. If a Form node field begins with an equals sign, n8n treats it as an expression and evaluates its content twice. When that field interpolates a value a user typed into an earlier form step, the submitted text is evaluated as an expression too. An unauthenticated attacker can then run arbitrary n8n expressions.

The n8n team rated the severity high, not critical, for three reasons. The workflow needs this unusual setup: a field that starts with an equals sign and echoes user input, for example a downstream step that renders the submitted name. The injection alone is limited to data in the expression context. Remote code execution needs a separate expression sandbox escape. A public form that matches the pattern is the target. What leaks is workflow data such as other node outputs available to the expression.

Who is affected

The npm package n8n before 1.123.22, 2.0.0 up to before 2.9.3, and 2.10.0 before 2.10.1. Only workflows with a Form node or Form Trigger whose field interpolates user input and starts with an equals sign are exploitable. Check:

npm ls n8n

For Docker, check the image tag you run.

n8n

Ecosystem
npm
Affected
< 1.123.22
Fixed in
1.123.22
Check
npm ls n8n

n8n

Ecosystem
npm
Affected
>= 2.0.0, < 2.9.3
Fixed in
2.9.3
Check
npm ls n8n

n8n

Ecosystem
npm
Affected
>= 2.10.0, < 2.10.1
Fixed in
2.10.1
Check
npm ls n8n

How to fix it

Upgrade to 1.123.22, 2.9.3 or 2.10.1, or later. For example:

npm install [email protected]

If you cannot upgrade yet, the advisory offers short-term mitigations that do not fully remove the risk. Review your Form nodes for the pattern above. Add n8n-nodes-base.form to the NODES_EXCLUDE environment variable to disable the Form node. Add n8n-nodes-base.formTrigger to disable the Form Trigger node.

How to tell if you were hit

Review your workflows for Form node fields whose value starts with an equals sign and contains a reference to submitted data. Look in execution history for form submissions whose values contain double curly braces or expression syntax. The advisory gives no log signature.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Impact

A second-order expression injection vulnerability existed in n8n's Form nodes that could allow an unauthenticated attacker to inject and evaluate arbitrary n8n expressions by submitting crafted form data. When chained with an expression sandbox escape, this could escalate to remote code execution on the n8n host.

The vulnerability requires a specific workflow configuration to be exploitable:

  1. A form node with a field interpolating a value provided by an unauthenticated user, e.g. a form submitted value.
  2. The field value must begin with an = character, which caused n8n to treat it as an expression and triggered a double-evaluation of the field content.

For example, a workflow uses a multi-step Form where a downstream Form node renders user-provided input back in an HTML field and precedes it with an = sign: =<h2>Thank you, {{ $input.first().json[\"Name\"] }}!</h2>

There is no practical reason for a workflow designer to prefix a field with = intentionally — the character is not rendered in the output, so the result would not match the designer's expectations. If added accidentally, it would be noticeable and very unlikely to persist. An unauthenticated attacker would need to either know about this specific circumstance on a target instance or discover a matching form by chance.

Even when the preconditions are met, the expression injection alone is limited to data accessible within the n8n expression context. Escalation to remote code execution requires chaining with a separate sandbox escape vulnerability.

Due to these real-world constraints — the unlikely workflow configuration, the need for an additional sandbox escape, and the difficulty of discovery — we have assessed the severity as High rather than Critical, diverging from the base CVSS score to better reflect actual exploitability.

Patches

The issue has been fixed in n8n versions 2.10.1, 2.9.3, and 1.123.22. Users should upgrade to one of these versions or later to remediate the vulnerability.

Workarounds

If upgrading is not immediately possible, administrators should consider the following temporary mitigations:

  • Review usage of form nodes manually for above mentioned preconditions.
  • Disable the Form node by adding n8n-nodes-base.form to the NODES_EXCLUDE environment variable.
  • Disable the Form Trigger node by adding n8n-nodes-base.formTrigger to the NODES_EXCLUDE environment variable.

These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.

Credited to eilonc-pillar.

Questions

Does CVE-2026-27493 give remote code execution?

Not alone. The injection reaches data in the expression context. Code execution needs a chain with a separate expression sandbox escape, per the n8n advisory.

Which n8n versions fix it?

1.123.22 on the 1.x line, 2.9.3 on 2.9, and 2.10.1 on 2.10. Upgrade to one of these or later.

Is every workflow with a form affected?

No. It needs a Form node field that starts with an equals sign and interpolates user-provided input. n8n says there is no practical reason to add that prefix on purpose.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More n8n vulnerabilities

All n8n entries