---
id: CVE-2026-118132
title: CVE-2026-118132
summary: >-
  NextChat version 2.16.1 contains a client‑side cross‑site scripting (XSS)
  vulnerability in the Plugin Editor due to unsafe rendering of externally
  supplied OpenAPI plugin schema content. When a plugin schema is loaded from a
  remote URL, …
severity: none
cwe:
  - CWE-79
vendor: NextChat
product: NextChat
affected:
  - NextChat 2.16.1
published: '2026-10-27'
updated: '2026-10-27'
sourceUpdated: '2026-10-27T17:38:13.552Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-118132'
references:
  - url: 'https://github.com/ChatGPTNextWeb/NextChat'
tags:
  - cve.org
ingestedAt: '2026-10-27T17:54:31.800Z'
---

## Overview

NextChat version 2.16.1 contains a client‑side cross‑site scripting (XSS) vulnerability in the Plugin Editor due to unsafe rendering of externally supplied OpenAPI plugin schema content. When a plugin schema is loaded from a remote URL, the returned content is stored in plugin.content and later rendered using React’s dangerouslySetInnerHTML without proper sanitization. An attacker can host a malicious OpenAPI schema containing HTML or JavaScript markup and trick a user into loading it through the Plugin Editor, resulting in arbitrary JavaScript execution in the NextChat origin. Successful exploitation allows access to JavaScript‑readable cookies and other client‑side data associated with the NextChat application.

## Affected

- `NextChat 2.16.1`

## Remediation

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