PoC Monitor
← All CVEs
CVE-2026-42231published 4 May 2026 18:30 UTCData: JSON · API

N8n-io n8n

n8n: Prototype Pollution in XML Webhook Body Parser Leads to RCE

n8n is an open source workflow automation platform. Prior to versions 1.123.32, 2.17.4, and 2.18.1, a flaw in the xml2js library used to parse XML request bodies in n8n's webhook handler allowed prototype pollution via a crafted XML payload. An authenticated user with permission to create or modify workflows could exploit this to pollute the JavaScript object prototype and, by chaining the pollution with the Git node's SSH operations, achieve remote code execution on the n8n host. This issue has been patched in versions 1.123.32, 2.17.4, and 2.18.1.

First public PoC 2.3 daysafter publication · 7 May 2026
Public PoCs11 on GitHub
CVSS9.4critical · scored by CNA · CWE-1321
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

n8n-io n8n
  • < 1.123.32
  • >= 2.17.0, < 2.17.4
  • >= 2.18.0, < 2.18.1

Fixed in 1.123.32, 2.17.4, 2.18.1

Mitigation

Upgrade n8n to 1.123.32 or 2.17.4 or 2.18.1 or later.

References

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published4 May 2026 · t = 0First public PoC7 May 2026 · t+2.3d

First public PoC 2.3 days after publication; not in CISA KEV. First PoC: rudSarkar/CVE-2026-42231 (created 7 May 2026, found by us: backfilled).

PoC repositories

Found on GitHub.

1 PoCs

PoCs 1
RepositoryCreatedStarsAssessment
rudSarkar/CVE-2026-42231 7 May 2026 +2.3 d 0 PoC

Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.

PoC characteristics

What to hunt for in your logs · from 1 PoC repo

PATCH /tmp/n8n_lab_cookies.txt

Key headers
Cookie: /tmp/n8n_lab_cookies.txt
Body markers
"active" in application/json
Ports
5678
Seen in
1 repo: rudSarkar/CVE-2026-42231
Evidence
rudSarkar/CVE-2026-42231/exploit.sh:109

POST /tmp/n8n_lab_cookies.txt

Key headers
Cookie: /tmp/n8n_lab_cookies.txt
Body markers
"email":"$email" "firstName":"Lab" "lastName":"Admin" "password":"$pass" "emailOrLdapLoginId":"$email" in application/json
Ports
5678
Seen in
1 repo: rudSarkar/CVE-2026-42231
Evidence
rudSarkar/CVE-2026-42231/exploit.sh:49 rudSarkar/CVE-2026-42231/exploit.sh:56 rudSarkar/CVE-2026-42231/exploit.sh:103

Regex

Generated from PoC characteristics; not yet reviewed. Matches the request path and query.

PATCH /tmp/n8n_lab_cookies.txt
(?i)^/tmp/n8n_lab_cookies\.txt(?:[?#].*)?$
POST /tmp/n8n_lab_cookies.txt
(?i)^/tmp/n8n_lab_cookies\.txt(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

PATCH /tmp/n8n_lab_cookies.txt
alert http any any -> $HOME_NET [5678] (msg:"GG PoC-Monitor CVE-2026-42231 n8n-io n8n exploit attempt"; flow:established,to_server; http.method; content:"PATCH"; http.uri; content:"/tmp/n8n_lab_cookies.txt"; http.header; content:"Cookie: /tmp/n8n_lab_cookies.txt"; nocase; http.request_body; content:"|22|active|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-42231; classtype:web-application-attack; sid:9770598; rev:1;)
POST /tmp/n8n_lab_cookies.txt
alert http any any -> $HOME_NET [5678] (msg:"GG PoC-Monitor CVE-2026-42231 n8n-io n8n exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/tmp/n8n_lab_cookies.txt"; http.header; content:"Cookie: /tmp/n8n_lab_cookies.txt"; nocase; http.request_body; content:"|22|email|22|:|22|$email|22|"; http.request_body; content:"|22|firstName|22|:|22|Lab|22|"; http.request_body; content:"|22|lastName|22|:|22|Admin|22|"; http.request_body; content:"|22|password|22|:|22|$pass|22|"; http.request_body; content:"|22|emailOrLdapLoginId|22|:|22|$email|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-42231; classtype:web-application-attack; sid:9891036; rev:1;)

Sigma

Template generated from PoC characteristics. Review before deploying.

PATCH /tmp/n8n_lab_cookies.txt
title: n8n-io n8n exploit attempt (CVE-2026-42231)
id: gg-pocmon-cve-2026-42231-9770598
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-42231. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2026-42231
logsource:
  category: webserver
detection:
  selection:
    cs-method: PATCH
    cs-uri-stem|contains|all:
      - '/tmp/n8n_lab_cookies.txt'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2026.42231
POST /tmp/n8n_lab_cookies.txt
title: n8n-io n8n exploit attempt (CVE-2026-42231)
id: gg-pocmon-cve-2026-42231-9891036
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-42231. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2026-42231
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/tmp/n8n_lab_cookies.txt'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2026.42231