GitGuardian found 4,576 leaked n8n tokens, and a third of reachable instances accepted them
Exposed n8n API tokens in public GitHub commits gave researchers read access to workflows, stored credentials, and data tables, plus a path to exfiltrate the raw secrets of every connected service.
GitGuardian reported on August 5, 2026 that it found 4,576 unique n8n API tokens exposed in public GitHub commits across 1,255 hostnames, frequently sitting next to the instance URL in the same config file. Of 896 reachable instances tested, 321 accepted at least one leaked token, about 36 percent. In a controlled environment researchers demonstrated four paths: enumerate users, workflow definitions, and hard-coded secrets through read-only calls; invoke stored credentials such as OpenAI keys without ever reading their values; dump data tables of names, emails, and form responses; and build a workflow that ships stored credentials to attacker infrastructure in HTTP headers. n8n said it was aware and planned to address the issues.
Why it matters
Automation platforms are credential concentrators. n8n exists to hold connections to databases, source repositories, cloud accounts, AI services, and support tools, so a single API key for the orchestrator is worth more than any one of the credentials it stores. The fourth attack path is the one to internalize: the platform does not need to expose a secret's value for an attacker to steal it, because the attacker can simply build a workflow that uses the credential to call their own endpoint. Read-only access to a workflow engine is not read-only in effect. Treat orchestrator tokens as non-human identities with owners, expiry, and scoped permissions, keep them out of the repository entirely, and rotate every connected service credential if a token ever leaked.
Source: The Hacker News
Related on Start with Identity
- BlogOver 1,000 AI-named npm typosquats deliver a cross-platform dropper
OpenSourceMalware and Sonatype tracked Flooding Dropper, a campaign of AI-generated typosquat package names carrying WEL1DROPPER, which fetches Sliver on Linux
- BlogPoisoned Rust crates turned routine builds into credential theft for about 90 minutes each
Malicious versions of arrayref, internment, and append-only-vec shipped an infostealer targeting browser profiles and crypto wallets. crates.io pulled them with
- BlogCisco FMC shipped with hardcoded credentials, and attackers found them before the patch did
CVE-2026-20316 is a low-privileged account with credentials hardcoded into Cisco Secure Firewall Management Center, giving unauthenticated remote attackers acce
- CVEDuende OAuth token management mixes tokens across requests
A race in Duende's .NET OAuth token-management package could attach client A's token to client B's request. Session mix-up, not a crypto break, but it is still
- CVEEntra ID Actor tokens enabled cross-tenant Global Admin
Undocumented Actor tokens plus an Azure AD Graph tenant-validation flaw let an attacker impersonate any user, including Global Admin, in every Entra ID tenant.
- VendorGitGuardian
top_tier