GHSA-58jc-rcg5-95f3

Suggest an improvement
Source
https://github.com/advisories/GHSA-58jc-rcg5-95f3
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/12/GHSA-58jc-rcg5-95f3/GHSA-58jc-rcg5-95f3.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-58jc-rcg5-95f3
Aliases
Published
2025-12-26T17:30:19Z
Modified
2025-12-27T01:28:06.121184Z
Severity
  • 7.3 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N CVSS Calculator
Summary
n8n's Possible Stored XSS in "Respond to Webhook" Node May Execute Outside iframe Sandbox
Details

Summary

A stored Cross-Site Scripting (XSS) vulnerability may occur in n8n when using the “Respond to Webhook” node. When this node responds with HTML content containing executable scripts, the payload may execute directly in the top-level window, rather than within the expected sandbox introduced in version 1.103.0.

This behavior can enable a malicious actor with workflow creation permissions to execute arbitrary JavaScript in the context of the n8n editor interface.

While session cookies (n8n-auth) are marked HttpOnly and cannot be directly exfiltrated, the vulnerability can facilitate Cross-Site Request Forgery (CSRF)-like actions from within the user’s authenticated session, potentially allowing:

  • Unauthorized reading of sensitive workflow data or execution history.
  • Unauthorized modification or deletion of workflows.
  • Insertion of malicious workflow logic or external data exfiltration steps.

n8n instances that allow untrusted users to create workflows are particularly impacted.

Patches

The vulnerability has been patched in v.1.114.0.

Workarounds

  • Restrict workflow creation and modification privileges to trusted users only.
  • Avoid using untrusted HTML responses in the “Respond to Webhook” node.
  • Use an external reverse proxy or HTML sanitizer to filter responses that include executable scripts.
Database specific
{
    "nvd_published_at": "2025-12-26T22:15:51Z",
    "cwe_ids": [
        "CWE-79"
    ],
    "github_reviewed_at": "2025-12-26T17:30:19Z",
    "severity": "HIGH",
    "github_reviewed": true
}
References

Affected packages

npm / n8n

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.114.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/12/GHSA-58jc-rcg5-95f3/GHSA-58jc-rcg5-95f3.json"