Description
n8n before 2.8.0 contains a cross-site scripting vulnerability in the credential management flow where authenticated users can inject malicious JavaScript URLs into OAuth2 credential Authorization URL fields. Attackers can craft malicious credentials and trick victims into clicking the OAuth authorization button, executing arbitrary scripts in their browser session with the victim's privileges.
Problem types
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Product status
Any version before 2.8.0
2.8.0 (semver)
Any version before 2.6.4
2.6.4 (semver)
Credits
yohannslm
References
github.com/...io/n8n/security/advisories/GHSA-364x-8g5j-x2pr (GitHub Security Advisory (GHSA-364x-8g5j-x2pr))
www.vulncheck.com/...ial-management-oauth2-authorization-url (VulnCheck Advisory: n8n - Cross-Site Scripting in Credential Management OAuth2 Authorization URL)