CVE-2025-15632
Received Received - Intake
Cross-Site Scripting in 1Panel-dev MaxKB MdPreview Component

Publication date: 2026-04-13

Last updated on: 2026-04-29

Assigner: VulDB

Description
A vulnerability has been found in 1Panel-dev MaxKB up to 2.4.2. Impacted is an unknown function of the file ui/src/chat.ts of the component MdPreview. Such manipulation leads to cross site scripting. The attack can be executed remotely. The exploit has been disclosed to the public and may be used. Upgrading to version 2.5.0 is recommended to address this issue. The name of the patch is 7230daa5ec3e6574b6ede83dd48a4fbc0e70b8d8. It is advisable to upgrade the affected component. The vendor was contacted early, responded in a very professional manner and quickly released a fixed version of the affected product.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-04-13
Last Modified
2026-04-29
Generated
2026-05-07
AI Q&A
2026-04-13
EPSS Evaluated
2026-05-05
NVD
EUVD
Affected Vendors & Products
Showing 3 associated CPEs
Vendor Product Version / Range
1panel-dev maxkb to 2.4.2 (inc)
1panel-dev maxkb to 2.6.1 (inc)
1panel-dev maxkb 2.5.0
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
CWE-94 The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

CVE-2025-15632 is a stored Cross-Site Scripting (XSS) vulnerability in MaxKB (version ≀ 2.6.1), specifically affecting the Markdown editor's paragraph content feature.

Authenticated users with dataset management permissions can create paragraphs containing arbitrary HTML or Markdown content that is stored without sanitization and later rendered in the user interface using the MdPreview component, which does not sanitize HTML by default.

This allows malicious JavaScript embedded in the paragraph content to execute in the browsers of other users, including administrators, when they view the paragraph or its execution details.

The vulnerability arises because backend endpoints accept and store unsanitized content, and the frontend renders this content without applying any sanitization, enabling remote attackers to inject and execute malicious scripts.


How can this vulnerability impact me? :

This vulnerability can lead to the execution of malicious scripts in the browsers of users who view the affected content, potentially allowing attackers to steal session tokens, perform actions on behalf of users, or deliver malware.

Since the attack can be executed remotely by authenticated users with certain permissions, it poses a risk of unauthorized access or manipulation of user sessions and data.

The exploit being publicly disclosed increases the risk of exploitation by attackers.

Upgrading to version 2.5.0 or later is recommended to mitigate these risks, as the update includes fixes that sanitize user input and prevent script execution.


How can this vulnerability be detected on my network or system? Can you suggest some commands?

This vulnerability can be detected by monitoring POST requests to the API endpoint responsible for paragraph creation, specifically the endpoint: /api/workspace/{workspace_id}/knowledge/{knowledge_id}/document/{document_id}/paragraph.

Look for suspicious payloads in the 'content' parameter of these POST requests that contain potentially malicious HTML or JavaScript, such as <img src=x onerror=alert('XSS')> or other script tags.

A practical detection method is to capture and inspect HTTP traffic or logs for such payloads submitted by authenticated users with dataset management permissions.

  • Use tools like curl or HTTP clients to test the endpoint with a payload containing JavaScript to see if it is stored and rendered without sanitization.
  • Example curl command to test the vulnerability (replace placeholders accordingly):
  • curl -X POST https://your-maxkb-instance/api/workspace/{workspace_id}/knowledge/{knowledge_id}/document/{document_id}/paragraph -H "Authorization: Bearer <token>" -H "Content-Type: application/json" -d '{"content": "<img src=x onerror=alert(1)>"}'

If the payload is stored and later executed when viewing the paragraph, the system is vulnerable.


What immediate steps should I take to mitigate this vulnerability?

The immediate and recommended step to mitigate this vulnerability is to upgrade MaxKB to version 2.5.0 or later, where the vulnerability has been fixed.

The fix involves sanitizing the Markdown editor input by integrating XSS protection plugins and enforcing strict whitelisting of allowed HTML tags and attributes, preventing malicious script injection.

If upgrading immediately is not possible, consider implementing input sanitization on the server side to filter out malicious HTML or JavaScript in the paragraph content before storage.

Additionally, restrict permissions so that only trusted users can create or edit paragraph content, reducing the risk of exploitation.


How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:

The vulnerability CVE-2025-15632 is a stored Cross-Site Scripting (XSS) issue in MaxKB that allows authenticated users to inject malicious scripts which execute in other users' browsers. Such vulnerabilities can lead to unauthorized access to user sessions, data exposure, or manipulation of user data.

While the provided information does not explicitly mention compliance with standards like GDPR or HIPAA, XSS vulnerabilities generally pose risks to data confidentiality and integrity, which are critical aspects of these regulations. Exploitation could potentially lead to unauthorized disclosure of personal or sensitive information, thereby affecting compliance.

Therefore, organizations using affected versions of MaxKB should consider this vulnerability a risk to regulatory compliance and should upgrade to version 2.5.0 or later, where the issue is fixed, to mitigate potential legal and compliance impacts.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart