Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. n8n
  4. ›
  5. CVE-2026-25051

CVE-2026-25051: n8n's Improper CSP Enforcement in Webhook Responses May Allow Stored XSS

February 4, 2026

A Cross-site Scripting (XSS) vulnerability has been identified in the handling of webhook responses and related HTTP endpoints. Under certain conditions, the Content Security Policy (CSP) sandbox protection intended to isolate HTML responses may not be applied correctly.

An authenticated user with permission to create or modify workflows could abuse this to execute malicious scripts with same-origin privileges when other users interact with the crafted workflow. This could lead to session hijacking and account takeover.

References

  • github.com/advisories/GHSA-825q-w924-xhgx
  • github.com/n8n-io/n8n
  • github.com/n8n-io/n8n/commit/ced34c0f93ab4c759a56065965986094d8ef7323
  • github.com/n8n-io/n8n/commit/e8cf4d6bb3af94dc296cbb67bc3dd20e9b508ac9
  • github.com/n8n-io/n8n/security/advisories/GHSA-825q-w924-xhgx
  • nvd.nist.gov/vuln/detail/CVE-2026-25051

Code Behaviors & Features

Detect and mitigate CVE-2026-25051 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.122.5, all versions starting from 1.123.0 before 1.123.2

Fixed versions

  • 1.123.2
  • 1.122.5

Solution

Upgrade to versions 1.122.5, 1.123.2 or above.

Impact 8.7 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/n8n/CVE-2026-25051.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 07 Feb 2026 00:17:57 +0000.