n8nのWebhook応答に保存型XSSの脆弱性、認証済みユーザーが悪用可能
Summary
n8nの一部のWebhook応答で、エラー応答などにサンドボックス用のContent-Security-Policyが付かず、保存型のクロスサイトスクリプティングの脆弱性があります。ワークフローを作成して有効化できる認証済みユーザーが、n8nのオリジン上で動くHTMLを配信でき、Webhook URLを開いた利用者のセッションで操作される可能性があります。影響を受けるのは2.43.5より前の2.x系で、修正版は2.43.5です。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
n8nの一部のWebhook応答で、エラー応答などにサンドボックス用のContent-Security-Policyが付かず、保存型のクロスサイトスクリプティングの脆弱性があります。ワークフローを作成して有効化できる認証済みユーザーが、n8nのオリジン上で動くHTMLを配信でき、Webhook URLを開いた利用者のセッションで操作される可能性があります。影響を受けるのは2.43.5より前の2.x系で、修正版は2.43.5です。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| n8n-ion8n |
≥ 2.0.0, < 2.43.5→ 2.43.5 |
2.43.5 |
Original description The description as published by the source.
n8n before 1.123.85, 2.x before 2.43.5, and 2.44.x before 2.44.1 contains a stored cross-site scripting vulnerability because some webhook response paths, such as error responses and responses without headers, omit the sandbox Content-Security-Policy. Authenticated members who can create and activate workflows can serve HTML that runs on the n8n origin, letting scripts act with the session of users who open the webhook URL.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory vulncheck.com
- advisory nvd.nist.gov
- advisory github.com
- web github.com