Intel

AIKIDO-2026-970261

@node-red/editor-api is vulnerable to Cross-Site Scripting (XSS)

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Aug 6, 2026
August 6, 2026

59

CVE Score

Medium

Cross-Site Scripting (XSS)

Are you affected? Scan for Free

TL;DR

The Node-RED editor endpoint in @node-red/editor-api renders the admin editor page and embeds req.session.messages into an inline <script> block through the editor template. The session-message JSON is inserted without escaping, so content that reaches session messages can inject script into the editor page, potentially leading to arbitrary JavaScript execution in the Node-RED admin editor origin. The fix escapes <, >, &, and / in the serialized session messages before they are rendered into the script tag.

How do I fix this?

Upgrade the @node-red/editor-api library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and untrusted content can reach the editor session messages.

Versions

2.1.0 - 4.1.11

Fixed in 4.1.12

5.0.0 - 5.0.1

Fixed in 5.0.2

Background info

@node-red/editor-api is vulnerable to Cross-Site Scripting (XSS) in versions 2.1.0 - 4.1.11 and 5.0.0 - 5.0.1.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea