CVE Catalog

CVE-2026-92587

MediumCVSS 5.0
Published: Translated: NVD NIST

Summary

n8n before versions 1.123.76, 2.37.7, and 2.38.2 has a vulnerability in the Git node that allows an authenticated user to read Git repositories outside the configured directory (N8N_RESTRICT_FILE_ACCESS_TO). By nesting the repository below the configured path, the user can bypass the URL validation and git actually reads data from outside the allowed area.

Risk Assessment

Risk of data leakage – a user can read contents of Git repositories they should not have access to, potentially exposing confidential information.

Recommendation

Upgrade to versions 1.123.76, 2.37.7, or 2.38.2, which fix this vulnerability. Alternatively, disable the Git node by adding n8n-nodes-base.git to NODES_EXCLUDE.

Other vulnerabilities in n8n

See all
Original NVD description (English source)

n8n is a workflow automation platform. In versions before 1.123.76, 2.37.7, and 2.38.2, the Git node validated a relative remote URL against the configured repositoryPath but then invoked git with that path as its working directory; git walked up to the enclosing repository's top level and resolved the same relative URL from there. An authenticated user (member) who nested the repository one level below the configured path could therefore make an identical URL string pass the file-access check while git resolved it outside the sandbox. A subsequent fetch or pull read a git repository outside N8N_RESTRICT_FILE_ACCESS_TO and merged its objects into the user's own repository, where their contents could be read back. The issue is fixed in n8n 1.123.76, 2.37.7, and 2.38.2, which resolve the remote reference from the directory git actually operates in before applying the sandbox check. As a workaround, the Git node can be disabled by adding n8n-nodes-base.git to NODES_EXCLUDE.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS