CVE-2026-25051: n8n Improper CSP Enforcement in Webhook Responses Leading to Stored XSS

n8n Updated 04 Feb 2026

Summary

04/02/2026
Yes i
High
8.5

CVE-2026-25051: n8n's Improper CSP Enforcement in Webhook Responses May Allow Stored XSS. Affects n8n across 2 version ranges.

< 1.122.5 >= 1.123.0, < 1.123.2

Fixed in 1.122.5 or 1.123.2, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

n8n is an open-source workflow automation tool that allows users to connect various applications and services to automate tasks. It provides a user-friendly interface for creating workflows that can integrate with APIs, databases, and other services. However, n8n has a vulnerability related to its Content Security Policy (CSP) enforcement, which can lead to security risks if not addressed.

Vulnerability Detail

A Cross-site Scripting (XSS) vulnerability exists in n8n's handling of webhook responses and related HTTP endpoints. The issue arises when the Content Security Policy (CSP) sandbox protection fails to apply correctly under certain conditions. An authenticated user with permissions to create or modify workflows can exploit this vulnerability to execute malicious scripts with same-origin privileges. This could lead to severe consequences, including session hijacking and account takeover, especially when other users interact with the crafted workflows.

How To Fix

Latest published version: 2.44.6 as of 22 Oct 2026

npm install n8n@2.44.6

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 1.122.5 1.122.5
    npm install n8n@1.122.5
  • >= 1.123.0, < 1.123.2 1.123.2
    npm install n8n@1.123.2

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

If immediate upgrading is not feasible, administrators can implement the following temporary mitigations: 1. Limit workflow creation and editing permissions to fully trusted users only. 2. Avoid executing untrusted workflows. 3. Review workflows that receive data via webhooks, forms, or MCP servers to ensure they are communicating with trusted entities before executing them manually.

Conclusion

The identified vulnerability in n8n regarding improper CSP enforcement poses significant risks, including potential XSS attacks. Users are strongly encouraged to upgrade to the latest patched versions to mitigate these risks. Temporary workarounds can be applied, but they do not fully resolve the issue.

See every vulnerability recorded for n8n →

Share this vulnerability

FAQ

The vulnerability is a Cross-site Scripting (XSS) issue that arises from improper enforcement of the Content Security Policy in webhook responses.

Any authenticated user of n8n who has permissions to create or modify workflows may be able to exploit this vulnerability.

Exploitation of this vulnerability could lead to session hijacking and account takeover, posing significant security risks.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The CVSS score of this vulnerability is 8.5, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for n8n.

How To Fix

Latest published version: 2.44.6 as of 22 Oct 2026

npm install n8n@2.44.6

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 1.122.5 1.122.5
    npm install n8n@1.122.5
  • >= 1.123.0, < 1.123.2 1.123.2
    npm install n8n@1.123.2

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback