---
id: CVE-2026-120315
title: LobeHub Chat 1.84.26 before 2.1.49 Path Traversal RCE via writeTempFile
summary: >-
  LobeHub Chat from 1.84.26 before 2.1.49 contains a path traversal
  vulnerability that allows authenticated users to write arbitrary files by
  supplying unsanitized file names to writeTempFile(). Attackers can create a
  file record via file.…
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cvssSource: cna
cwe:
  - CWE-22
vendor: lobehub
product: chat
affected:
  - chat >= 1.84.26 < 2.1.49
published: '2026-11-02'
updated: '2026-11-02'
sourceUpdated: '2026-11-02T02:01:13.641Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-120315'
references:
  - url: 'https://github.com/lobehub/lobehub/security/advisories/GHSA-2g9j-v25c-4j97'
    label: GitHub Security Advisory (GHSA-2g9j-v25c-4j97)
  - url: >-
      https://www.vulncheck.com/advisories/lobehub-chat-1.84.26-before-2.1.49-path-traversal-rce-via-writetempfile
    label: >-
      VulnCheck Advisory: LobeHub Chat 1.84.26 before 2.1.49 Path Traversal RCE
      via writeTempFile
tags:
  - cve.org
epss: 0.00436
epssPercentile: 0.38021
ingestedAt: '2026-11-05T19:30:42.618Z'
---

## Overview

LobeHub Chat from 1.84.26 before 2.1.49 contains a path traversal vulnerability that allows authenticated users to write arbitrary files by supplying unsanitized file names to writeTempFile(). Attackers can create a file record via file.createFile with a traversal name, then trigger document parsing to overwrite application files like startServer.js for code execution or denial of service.

## Affected

- `chat >= 1.84.26 < 2.1.49`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
