{"id":"CVE-2026-56359","aliases":["GHSA-364x-8g5j-x2pr"],"url":"https://o3.security/vulnerability/CVE-2026-56359","summary":"n8n - Cross-Site Scripting in Credential Management OAuth2 Authorization URL","details":"## Impact\nAn authenticated user with permission to create and share credentials could craft a malicious OAuth2 credential containing a JavaScript URL in the Authorization URL field. If a victim opened the credential and interacted with the OAuth authorization button, the injected script would execute in their browser session.\n\n## Patches\nThe issue has been fixed in n8n versions 2.8.0 and 2.6.4. Users should upgrade to one of these versions or later to remediate the vulnerability.\n\n## Workarounds\nIf upgrading is not immediately possible, administrators should consider the following temporary mitigations:\n- Limit credential creation and sharing permissions to fully trusted users only.\n- Restrict access to the n8n instance to trusted users only.\n\nThese workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.","published":"2026-07-08T13:49:02.746Z","modified":"2026-08-12T03:51:43.642224800Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"n8n","fixedVersion":"2.8.0"},{"ecosystem":"npm","name":"n8n","fixedVersion":"2.6.4"}],"fix":null,"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/56xxx/CVE-2026-56359.json"},{"type":"ADVISORY","url":"https://github.com/n8n-io/n8n/security/advisories/GHSA-364x-8g5j-x2pr"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-56359"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/n8n-cross-site-scripting-in-credential-management-oauth2-authorization-url"},{"type":"PACKAGE","url":"https://github.com/n8n-io/n8n"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:43.642224800Z"}}