CVE-2026-118678

n8n before 2.41.4 and 2.42.1 Prototype Pollution DoS via Workflow History Compaction

Published Oct 28, 2026 CVSS 4.0 · 7.1 High EPSS < 1% KEV · Not listed
Description
n8n before 2.41.4 and 2.42.x before 2.42.1 contains a prototype pollution vulnerability that allows low-privileged users to alter built-in object behaviour by saving workflows with specially named connection keys. Attackers can add keys such as __proto__ to workflow connections, which the periodic history compaction task processes, causing logins and writes to fail with server errors.

Analysis

AI-generated

Technical impact

The vulnerability is a prototype pollution flaw in n8n. Low‑privileged users can create workflows containing specially named connection keys, such as __proto__, which the automated history‑compaction task processes. When the task manipulates these keys, internal JavaScript object structures are altered, leading to unexpected server errors that block login and write operations. The flaw is classified as CWE‑1321 and results in a denial‑of‑service condition that can affect the entire application on the affected node.

Affected Systems

Affected are installations of n8n prior to version 2.41.4 and prior to 2.42.1. This includes all versions 2.41.x older than 2.41.4 and 2.42.x older than 2.42.1 running the n8n workflow automation engine.

Risk and Exploitability

The CVSS score of 7.1 indicates a high severity weakness. Because the exploit requires only creation of a workflow, which is normally allowed to lower‑privileged users, the attack surface is large, although no public proof‑of‑concept is available. The EPSS score is not provided; it is therefore uncertain how frequently attackers might target this flaw in the wild. The vulnerability is not listed in the CISA KEV catalog, suggesting it has not yet been widely exploited. The best estimate is that an attacker can perform a denial‑of‑service attack by triggering the history‑compaction routine, thus causing application outages with minimal effort.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade n8n to version 2.41.4 or later (at least 2.42.1).
  • If a patch cannot be applied immediately, restrict workflow creation to trusted users or temporarily disable the scheduled history compaction task until the issue is resolved.
  • Monitor application logs for recurring internal server errors and login failures, and apply further mitigations as needed.

Generated by OpenCVE AI on October 28, 2026 at 20:30 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description n8n before 2.41.4 and 2.42.x before 2.42.1 contains a prototype pollution vulnerability that allows low-privileged users to alter built-in object behaviour by saving workflows with specially named connection keys. Attackers can add keys such as __proto__ to workflow connections, which the periodic history compaction task processes, causing logins and writes to fail with server errors.
Title n8n before 2.41.4 and 2.42.1 Prototype Pollution DoS via Workflow History Compaction
First Time appeared N8n
N8n n8n
Weaknesses CWE-1321
CPEs cpe:2.3:a:n8n:n8n:*:*:*:*:*:*:*:*
Vendors & Products N8n
N8n n8n
References
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H'}

cvssV4_0

{'score': 7.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-1321

    Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 29, 2026, 8:54 PM
Reserved
Oct 28, 2026, 5:28 PM
Status
Deferred
Published
Oct 28, 2026, 7:17 PM
Modified
Oct 29, 2026, 9:17 PM