Skip to content
HighVulnerability

GHSA-825q-w924-xhgx: n8n's Improper CSP Enforcement in Webhook Responses May Allow Stored XSS

Published
Record updated
View JSON
Affected
  • n8n >= 1.123.0, < 1.123.2, fixed in 1.123.2
  • n8n < 1.122.5, fixed in 1.122.5
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.3%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

A Cross-site Scripting flaw in n8n's handling of webhook responses and related HTTP endpoints means the Content Security Policy sandbox that should isolate HTML responses may not be applied correctly. An authenticated user with permission to create or modify workflows can run scripts with same-origin privileges when other users interact with the crafted workflow, potentially enabling session hijacking and account takeover.

Mitigation

The issue is fixed in n8n versions 1.122.5 and 1.123.2; users should upgrade to these versions or later. If upgrading is not immediately possible, limit workflow creation and editing permissions to fully trusted users, never execute untrusted workflows, and review workflows that receive data via webhooks, forms, or MCP servers before executing them manually. These workarounds do not fully remediate the risk and should only be short-term measures.