Exposed Dangerous Method or Function Affecting @n8n/config package, versions <2.0.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.02% (6th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Exposed Dangerous Method or Function vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-N8NCONFIG-14723278
  • published28 Dec 2025
  • disclosed26 Dec 2025
  • creditBerk Dedekargınoğlu

Introduced: 26 Dec 2025

CVE-2025-68697  (opens in a new tab)
CWE-269  (opens in a new tab)
CWE-749  (opens in a new tab)

How to fix?

Upgrade @n8n/config to version 2.0.0 or higher.

Overview

Affected versions of this package are vulnerable to Exposed Dangerous Method or Function in the Code node when running in legacy JavaScript execution mode. An attacker can access or modify files on the host system with the same privileges as the application process by invoking internal helper functions from within the node. This is only exploitable if the instance is self-hosted, the legacy execution mode is enabled, and the attacker has authenticated workflow editing access.

Workaround

This vulnerability can be mitigated by:

  1. Limiting file operations to a dedicated directory using the N8N_RESTRICT_FILE_ACCESS_TO environment variable

  2. Keeping N8N_BLOCK_FILE_ACCESS_TO_N8N_FILES=true to block access to sensitive files

  3. Disabling high-risk nodes (including the Code node) with NODES_EXCLUDE if workflow editors are not fully trusted.

References

CVSS Base Scores

version 4.0
version 3.1