If you self-host n8n with several users, upgrade to 1.123.96, 2.47.6, 2.48.3, 3.2.2 or later and check active workflows for triggers using credentials their owner didn't set

n8n let a member activate a workflow using someone else's credential if they knew its ID · Security incident · GitHub (n8n-io/n8n) · n8n-io · Nov 13, 2026

What happened

n8n published GHSA-h59h-rf6m-7jp5 (Moderate) on 13 Nov 2026. When a workflow was activated, n8n registered its trigger nodes with connected services using the credentials on those nodes, without checking that the user publishing the workflow could access them. A member who knew another user's credential ID could activate a workflow whose trigger used it, so n8n created or deleted webhooks on services like GitHub or GitLab with that credential's privileges and sent events from resources the member chose to the member's workflow.

How to prevent it

Give automation tools scoped, per-user credentials, limit who can publish workflows, and review webhooks registered on GitHub, GitLab and similar services for ones you don't recognise.

Fix prompt for your own AI tool

Copy this into your own AI tool (Cursor, Lovable, Claude Code, Bolt…). It's general guidance written by us. Review what the AI suggests before applying it.

I'm a beginner and want to make sure my API keys are safe in my n8n project. 1) Search the code for hardcoded keys or tokens and for secrets in variables that ship to the browser (NEXT_PUBLIC_, VITE_, REACT_APP_). List the file and line, but don't print the values. 2) For each one, tell me whether it's meant to be public (like a Supabase anon key) or secret. 3) For secret ones, show me how to move them to server-side env vars and call the provider through a server route. 4) Give me the steps to rotate each exposed key in the provider's dashboard and set a spending limit. 5) Make sure .env is in .gitignore and in my AI tool's ignore file. Don't change anything until I've approved your plan. Never ask me to paste API keys, passwords or .env contents; tell me where to check them myself.

Why this keeps happening: leaked secrets & api keys

Secret keys placed in front-end code, mobile bundles or public repositories can be found by automated scanners and abused, often running up large bills on AI or cloud accounts before anyone notices.

A quick checklist before you ship

More on this: every leaked secrets & api keys story and our related guide.

Tools involved

n8n stories

Related stories

Source: original post on GitHub (n8n-io/n8n) ↗. Summarised in our own words; numbers are as stated by the source. Browse all stories.

The Honest Build. Real stories, not hype.

Every week: real stories of what building with AI actually took, the one lesson worth keeping, and the security slip-ups to avoid. Free, unsubscribe anytime. Weekly, every Friday.