MISFIRE

Browse / AI Framework and Platform Flaws / CVE-2025-68697

Self-hosted n8n has Legacy Code node that enables arbitrary file read/write

CVE-2025-68697 ยท 2025-12-26 high

Class
AI Framework and Platform Flaws (filed by a model that read the source)
Technique
Sandbox escape
Affected
n8n (npm)
Gets past
Sandbox or allowlist
CVSS
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N
EPSS
0.3% chance of exploitation in 30 days

How it works, in short

In legacy Code node mode, internal helper functions remain reachable from workflow scripts, letting editors read and write host files outside the intended restrictions. (Our summary, written by a model. The source text is below.)

Details

Impact

In self-hosted n8n instances where the Code node runs in legacy (non-task-runner) JavaScript execution mode, authenticated users with workflow editing access can invoke internal helper functions from within the Code node.

This allows a workflow editor to perform actions on the n8n host with the same privileges as the n8n process, including:

Starting with n8n version 1.2.1, access to files in the n8n home directory (.n8n) is blocked by default. However, this does not restrict access to other parts of the filesystem unless additional file access limitations are configured.

Patches

Workarounds

If you cannot immediately migrate to task runners:

Resources

References

Source: GitHub Advisory Database, used under CC BY 4.0.