n8n Form nodes allow unauthenticated users to inject expressions
What this means
An attacker who finds a form with specific settings can inject code that runs on the n8n server. If combined with another vulnerability, this could let them run any code on the server and take it over. This risk applies only to instances with forms that accept and display user input with an equals sign prefix.
SecurityElites Manager Brief: the decision in one minute
n8n Form nodes can be tricked into running attacker-controlled code if they are set up to show user input starting with an equals sign. This requires a specific workflow setup and another vulnerability to reach full control. Update n8n immediately to the fixed versions.
| SecurityElites Fix-First Score | 51 of 100 Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity. |
|---|---|
| SecurityElites fix window | Within 7 days Critical severity. This is our suggestion from common practice; your own policy comes first. |
| Who should own the fix | Platform engineering or DevOps team. |
| Likely effort | About 15 minutes: download and deploy the fixed version, then restart n8n. It may take longer if you need to test your existing workflows with the new version. |
Questions to ask your team or supplier
- Do we have an inventory of all n8n instances in production, staging, and development, with current version numbers for each?
- Have we searched all workflows for Form nodes that display user input, and do any of them use an equals sign prefix that might trigger this vulnerability?
Message you can forward to the owning team
Security notice: n8n Form nodes allow unauthenticated users to inject expressions (CVE-2026-27493)
Severity: Critical
SecurityElites Fix-First Score: 51 of 100
SecurityElites fix window: Within 7 days
Action: upgrade to n8n 2.10.1 or later.
What we need from you: confirm whether we run this software, who owns it, and the date it will be fixed.
Full guide: https://securityelites.com/ai-vulnerabilities/cve-2026-27493-n8n-form-nodes-allow-unauthenticated-users-to-inject-expressions/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-01738What is at stake in your AI setup
- Tools and systems the form is connected to: an attacker could invoke them to read data, modify records, or trigger actions in external services.
- Keys for external APIs or services: the injected expression could read environment variables or configuration to steal authentication tokens.
Who is exposed
- n8n instances with Form or Form Trigger nodes that show user-submitted data back to other users
- Teams running n8n version 1.x before 1.123.22, version 2.0.0 through 2.9.2, or version 2.10.0
- Public or internet-facing forms built in n8n that accept text input from unauthenticated visitors
Upgrades you need
| Software | Affected versions | Move to |
|---|---|---|
| n8n npm | Every version before 1.123.22; 2.0.0 up to, but not including, 2.9.3; 2.10.0 up to, but not including, 2.10.1 | 2.10.1 or later |
Each maintained branch has its own fixed version. Stay on your branch if you cannot jump to the newest: n8n 1.123.22, 2.9.3, 2.10.1.
Am I affected?
Enter the version you run. Nothing you type is stored.
SecurityElites Developer Brief: the technical picture
| Is it being attacked | No known attacks and no public attack code when CISA last reviewed it |
|---|---|
| Where the attacker must be | Anywhere that can reach it over a network, including the internet if it is exposed |
| Account needed | None. No login is needed |
| Does a person have to do something | No. It works without anyone clicking or opening anything |
| How hard it is to do | Hard. It depends on conditions the attacker does not control |
| Risk of: data being read | High |
| Risk of: data or settings being changed | High |
| Risk of: the service being taken down | High |
| Can attackers automate it at scale | No, according to CISA. Each target needs manual work |
| How much control an attacker gains | Total control of the affected software, according to CISA |
Read from the official severity rating: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Kind of coding mistake
- CWE-94: code can be injected
- CWE-95: code can be injected through evaluation
If you cannot upgrade today
- Until you can upgrade, disable Form and Form Trigger nodes by setting the environment variable `NODES_EXCLUDE=n8n-nodes-base.form,n8n-nodes-base.formTrigger`. Redeploy and restart n8n. This removes the vulnerable nodes entirely.
- Manually review every Form and Form Trigger node in every workflow. Remove any = character from the start of field values, especially fields that display user input. Test each workflow after editing.
- If forms must stay active, restrict access to the n8n instance to trusted networks only using a firewall or proxy until you can upgrade.
Signs it may already have been used against you
- Search n8n execution logs for Form or Form Trigger nodes that processed user input containing = at the start of a field value.
- Check audit logs or workflow history for Form nodes with field values that began with = followed by expression syntax like {{ or $.
- Review submitted form data logs to see whether any entries contain = followed by code-like patterns or unexpected characters.
- Look for unusual memory or CPU spikes during form submission, which might indicate expression evaluation overhead from injected code.
Log searches to start from
Form node executions with field values starting with equalsElastic
source=n8n AND (node.type:"n8n-nodes-base.form" OR node.type:"n8n-nodes-base.formTrigger") AND input.fieldValue:/^=.*/ | stats count by node.name, input.fieldValueForm submissions with expression syntax in user inputSplunk
source=n8n (node.type="n8n-nodes-base.form" OR node.type="n8n-nodes-base.formTrigger") input.fieldValue="=*" | table node.name, input.fieldValue, timestampWritten with AI as a starting point. Review them and change the index and field names to match your own logs before you rely on the result.
SecurityElites Fix Guide: step by step
- Find where n8n runsIdentify every server, container, or cloud service running n8n. Check deployment logs, container registries, and cloud console for all instances. Document the current version of each one.
- Check if Form nodes are in useOpen the n8n interface and search all workflows for nodes named 'Form' or 'Form Trigger'. For each one found, check whether it has fields that begin with an equals sign (=) and whether those fields show user input back in a message or HTML field. Document which workflows match this pattern.
- Review forms for the vulnerable patternIn each Form or Form Trigger node, look at field settings. The risk exists only if a field starts with = and that field displays data submitted by unauthenticated users. For example, `=Thank you, {{ $input.first().json["Name"] }}!` is vulnerable. Write down which workflows have this exact setup.
- Back up the current stateExport or snapshot the current n8n configuration, database, and any active workflow definitions. This lets you roll back if the upgrade causes problems.
- Upgrade n8n to the fixed versionDeploy version 1.123.22, 2.9.3, or 2.10.1 or later, depending on which release line you are on. Follow your normal deployment process (package manager, container image update, or cloud console deployment). Restart n8n after the upgrade completes.
- Verify the upgrade succeededLog in to n8n and check the version number displayed in the user menu or settings. Confirm it matches the fixed version you deployed. Verify that at least one workflow can run successfully.
- Review forms for unintended equals signsOpen all workflows that have Form nodes. For each one, check whether any field that displays user input starts with an equals sign by accident. If found, remove the = character from the field value. This prevents accidental re-introduction of the vulnerability.
- Check logs for signs of earlier abuseReview n8n execution logs and audit logs from the last 90 days for forms that received unexpected input or executed expressions. Look for field values that start with = or contain suspicious code. If found, assume the form was attacked and investigate what data may have been accessed or changed.
How to confirm it is fixed: Log in to n8n and confirm the version number in settings is 1.123.22, 2.9.3, 2.10.1, or later.
SecurityElites Quick Fixes: copy and paste
Upgrade n8n with npmupgrade
npm install n8n@2.10.1
npm ls n8nCheck n8n version from command linefor this issue
npm list n8n 2>/dev/null | grep n8n | head -1Disable Form nodes temporarily (if upgrade is blocked)for this issue
export NODES_EXCLUDE='n8n-nodes-base.form,n8n-nodes-base.formTrigger'Run the service in a locked-down containergeneral hardening
docker run --read-only --cap-drop ALL \
--security-opt no-new-privileges --user 1000:1000 \
-p 127.0.0.1:8080:8080 YOUR_IMAGETest in a non-production environment first. General hardening examples use placeholder names and ports; change them to match your setup.
Let your AI coding assistant do the upgrade
Paste this into the coding assistant you already use, inside the project. It checks first and asks before it changes anything.
Instruction for your coding assistant
You are helping me fix a security vulnerability (CVE-2026-27493) in this project.\n\n1. Search the whole repository, including lock files, container files and CI configuration, for these packages and list every place they are pinned or installed:\n - n8n (npm): must be 2.10.1 or later
2. Tell me which version we use now and whether it is affected. Stop and ask me before changing anything.
3. After I agree, raise each one to the safe version, update the lock files, and keep every other dependency as it is.
4. Run the tests and tell me what failed.
5. Give me a short summary of the files you changed that I can put in the pull request.SecurityElites Incident Drill: could your team handle this?
Four questions to ask in your next team meeting. If any has no clear answer, that is the gap to close.
Ticket for your backlog
Paste into Jira, GitHub Issues or any tracker that reads Markdown.
Ready-made ticket
## n8n Form nodes allow unauthenticated users to inject expressions (CVE-2026-27493)
**Severity:** Critical | **SE Fix-First Score:** 51/100 | **Fix window:** Within 7 days
**Record:** SE-AIV-01738 https://securityelites.com/ai-vulnerabilities/cve-2026-27493-n8n-form-nodes-allow-unauthenticated-users-to-inject-expressions/
### Why this matters
An attacker who finds a form with specific settings can inject code that runs on the n8n server. If combined with another vulnerability, this could let them run any code on the server and take it over. This risk applies only to instances with forms that accept and display user input with an equals sign prefix.
### What to do
1. Find where n8n runs
2. Check if Form nodes are in use
3. Review forms for the vulnerable pattern
4. Back up the current state
5. Upgrade n8n to the fixed version
6. Verify the upgrade succeeded
7. Review forms for unintended equals signs
8. Check logs for signs of earlier abuse
Full steps: https://securityelites.com/ai-vulnerabilities/cve-2026-27493-n8n-form-nodes-allow-unauthenticated-users-to-inject-expressions/
### Done when
- [ ] n8n is at 2.10.1 or later everywhere it is installed
- [ ] Lock files, container images and CI configuration are updated
- [ ] Log in to n8n and confirm the version number in settings is 1.123.22, 2.9.3, 2.10.1, or later.
- [ ] Logs were checked for signs of earlier use
SecurityElites Fix Tracker
Record who owns this fix, the date it is due and when it is done, and see everything still open in one list. Free with a SecurityElites account.
Related vulnerabilities
In the same software
- n8n legacy expression engine allows code execution via JSON.stringify override High · CVE-2026-86083
- n8n OpenAI node bypasses domain restrictions on model search High · CVE-2026-86082
- n8n Git node can freeze the instance with a crafted path High · CVE-2026-86081
- n8n OAuth registration accepts unlimited field sizes, filling the database High · CVE-2026-86075
- n8n expression compiler can run arbitrary code through class field names High · CVE-2026-86076
- n8n Edit Fields node can crash the whole instance with a bad field name High · CVE-2026-72749
The same kind of mistake in other AI tools
- MCPJungle allows unauthenticated attackers to get admin access and run code Critical · CVE-2026-145359
- Langflow OSS allows arbitrary code execution through tool listing without admin check High · CVE-2026-128876
- Langflow OSS can run arbitrary code via tool-call interface before admin check High · CVE-2026-128867
- Langflow OSS allows remote code execution through improper code handling High · CVE-2026-127065
- Langflow OSS allows authenticated users to run arbitrary code High · CVE-2026-122088
Change history
- 25 Feb 2026: Made public
- 2 Dec 2026: Published
Official record
## 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.
Weakness type: CWE-94, CWE-95
Use this record in your own tools
Get this record as JSON
curl https://securityelites.com/wp-json/se-aivd/v1/vulns/CVE-2026-27493For scanners and pipelines: OSV format · CycloneDX format · API guide · Email alerts · Fix tracker
The plain-language sections were written with AI from the official record, and the upgrade versions come directly from the official data. Last updated 2 Dec 2026. Read the vendor advisory before changing a production system.