CVE-2026-36728 Details
Description
A markdown based cross-site scripting (XSS) vulnerability in the AI assistant chat function of FastapiAdmin v2.2.0 allows attackers to execute arbitrary web scripts or HTML via injecting a crafted payload into a chat message.
A Cross-Site Scripting (XSS) vulnerability has been identified in the AI assistant chat feature of FastapiAdmin versions through 2.2.0. This issue allows authenticated attackers to execute arbitrary web scripts or HTML by injecting a crafted payload into a chat message. The vulnerability arises because user-supplied content is stored in the database without proper sanitization or validation, and is rendered on the frontend using markdown-it, which lacks built-in XSS protection. As a result, injected JavaScript can execute in the browsers of users viewing the chat messages or the message management page, potentially leading to session hijacking, credential theft, or unauthorized actions performed on behalf of the victims.
Users are advised to update to a version of FastapiAdmin that addresses this vulnerability. Additionally, implementing HTML sanitization with libraries like DOMPurify after rendering with markdown-it, using a markdown editor with built-in XSS protection such as mavonEditor, and applying Content Security Policy (CSP) headers can help mitigate this issue.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 9, 2026CISA-ADP
Assessed Jun 9, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/CC-T-454455/Vulnerabilities/tree/master/fastapi-admin/vulnerability-7 | [email protected] | ExploitTechnical Analysis |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| FastapiAdmin | <= 2.2.0 (semver) |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 23, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 9, 2026 | CVE Modified | CISA-ADP |
| Jun 9, 2026 | CVE Modified | CISA-ADP |
| Jun 9, 2026 | New CVE Received | [email protected] |
Volerion