{"answers":{"affected":"2 open source packages ship an affected version, including n8n. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-21858 exists.","fix":"Upgrade n8n to 1.121.0 or later.","what":"CVE-2026-21858 is a critical path traversal vulnerability in N8n N8n, published on 7 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-21858 and fix it if it is affected.\n\nWhat it is: CVE-2026-21858 is a critical path traversal vulnerability in N8n N8n, published on 7 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-21858 exists.\n\nAffected packages and fixed versions:\n- n8n (npm): affected from 1.65.0; fixed in 1.121.0\n- n8n (npm): affected from 1.65.0; fixed in 1.121.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-21858/ (Markdown: https://insights.sbomify.com/CVE-2026-21858/index.md)","id":"CVE-2026-21858","markdown":"https://insights.sbomify.com/CVE-2026-21858/index.md","name":"CVE-2026-21858","record":{"aliases":["GHSA-v4pr-fm98-w9pg"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"n8n workflow automation","requires_auth":"none","summary":"Unauthenticated attackers can access server files via vulnerable form-based workflows in n8n, exposing sensitive information.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"n8n","vendor":"n8n"}],"cvss":{"score":10,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"description":"n8n is an open source workflow automation platform. Versions starting with 1.65.0 and below 1.121.0 enable an attacker to access files on the underlying server through execution of certain form-based workflows. A vulnerable workflow could grant access to an unauthenticated remote attacker, resulting in exposure of sensitive information stored on the system and may enable further compromise depending on deployment configuration and workflow usage. This issue is fixed in version 1.121.0.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2026-01-07","github_poc":17,"max_poc_stars":303,"metasploit":0,"nuclei":1,"refs":[{"date":"2026-01-07T19:32:42Z","kind":"github_poc","ref":"https://github.com/Chocapikk/CVE-2026-21858","stars":303,"title":"n8n Ni8mare - Unauthenticated Arbitrary File Read to RCE Chain (CVSS 10.0)"},{"date":"2026-09-12T00:03:07Z","kind":"github_poc","ref":"https://github.com/ZeroDayEvil/CVE-2026-21858-n8n-FullChain","stars":88,"title":"🛡️ Official AI Security Tool module for CVE-2026-21858 + CVE-2025-68613 (n8n \"Ni8mare\" Unauthenticated Arbitrary File Read \u0026 Expression Injection RCE Full Chain)."},{"date":"2026-01-20T15:59:48Z","kind":"github_poc","ref":"https://github.com/sh4den/CVE-2026-21858","stars":3,"title":"Proof of Concept: CVE-2026-21858 is vulnerability on n8n where unauthenticated remote attackers can access sensitive files."},{"date":"2026-01-12T14:32:04Z","kind":"github_poc","ref":"https://github.com/cropnet/Ni8mare","stars":2,"title":"Comprehensive vulnerability detection tool for n8n workflow automation instances. Detects the critical CVE-2026-21858 vulnerability (CVSS 10.0) without performing any exploitation."},{"date":"2026-01-20T11:50:32Z","kind":"github_poc","ref":"https://github.com/sec-dojo-com/CVE-2026-21858","stars":1,"title":null},{"date":"2026-02-11T01:01:03Z","kind":"github_poc","ref":"https://github.com/EQSTLab/CVE-2026-21858","stars":1,"title":"Ni8mare, n8n RCE"},{"date":"2026-02-23T17:27:12Z","kind":"github_poc","ref":"https://github.com/0xredash/CVE-2026-21858","stars":1,"title":"CVE-2026-21858"},{"date":"2026-06-21T14:31:33Z","kind":"github_poc","ref":"https://github.com/Fomovet/cve-2026-21858","stars":1,"title":"POC for CVE-2026-21858"}],"tier":"weaponised"},"has_fix":true,"headline":"n8n Vulnerable to Unauthenticated File Access via Improper Webhook Request Handling","id":"CVE-2026-21858","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":"n8n:n8n","products":["n8n:n8n"],"type":"path_traversal","year":"2026"},"n_packages":2,"n_references":2,"next":{"headline":"Mailpit Proxy Endpoint is Vulnerable to Server-Side Request Forgery (SSRF)","id":"CVE-2026-21859"},"packages":[{"ecosystem":"npm","fixed":["1.121.0"],"introduced":["1.65.0"],"last_affected":[],"package":"n8n","purl":null,"source":"GHSA-v4pr-fm98-w9pg"},{"ecosystem":"npm","fixed":["1.121.0"],"introduced":["1.65.0"],"last_affected":[],"package":"n8n","purl":"pkg:npm/n8n","source":"GHSA-v4pr-fm98-w9pg"}],"prev":{"headline":"Redaxo has Path Traversal in Backup Addon Leading to Arbitrary File Read","id":"CVE-2026-21857"},"products":["n8n"],"published":"2026-01-07","related":[{"cvss_score":10,"headline":"n8n Improper Control of Dynamically-Managed Code Resources","id":"CVE-2025-68613","kev_date_added":"2026-03-11","published":"2025-12-19"},{"cvss_score":10,"headline":"n8n is vulnerable to Remote Code Execution via Arbitrary File Write","id":"CVE-2026-21877","kev_date_added":null,"published":"2026-01-08"},{"cvss_score":9.9,"headline":"n8n Unsafe Workflow Expression Evaluation Allows Remote Code Execution","id":"CVE-2026-1470","kev_date_added":null,"published":"2026-01-27"},{"cvss_score":9.9,"headline":"n8n Vulnerable to Arbitrary Command Execution in Pyodide based Python Code Node","id":"CVE-2025-68668","kev_date_added":null,"published":"2025-12-26"},{"cvss_score":9.5,"headline":"n8n has Unauthenticated Expression Evaluation via Form Node","id":"CVE-2026-27493","kev_date_added":null,"published":"2026-02-25"},{"cvss_score":9.4,"headline":"n8n: HTTP Request Node Pagination Prototype Pollution to RCE","id":"CVE-2026-44789","kev_date_added":null,"published":"2026-06-23"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-01-12","vendors":["n8n-io"]},"summary":"Unauthenticated attackers can access server files via vulnerable form-based workflows in n8n, exposing sensitive information.","url":"https://insights.sbomify.com/CVE-2026-21858/"}