CVE-2026-72594

lobehub lobe-chat - Stored Cross-Site Scripting via Unrestricted SVG Avatar Upload

Published Aug 10, 2026 CVSS 3.1 · 7.6 High EPSS < 1% KEV · Not listed
Description
A stored cross-site scripting (XSS) vulnerability in lobehub/lobe-chat through v2.2.13 allows a low-privileged authenticated user to inject arbitrary JavaScript into the application by uploading a crafted SVG file as a user avatar.

Analysis

AI-generated

Technical impact

The updated CVE description confirms a stored cross‑site scripting flaw in lobehub lobe‑chat up to version 2.2.13. A low‑privileged authenticated user can upload a crafted SVG file as an avatar. The upload handler trusts the file extension and MIME type from the original filename, allowing a malicious <script> element to be embedded within the SVG. When a victim user loads the avatar, the embedded script runs in the victim’s browser, potentially enabling session hijacking, credential theft, or defacement of the user’s view.

Affected Systems

The vulnerability impacts lobehub lobe‑chat versions up to and including 2.2.13. All users who can upload avatar images are subject to attack. The bug is present in all deployments of those releases, regardless of environment or configuration, unless the avatar upload functionality has been disabled or secured by custom modifications.

Risk and Exploitability

The CVSS base score of 7.6 classifies this vulnerability as high severity. No EPSS score is reported, and the issue is not currently listed in the CISA KEV catalog. The attack vector requires only that an attacker be authenticated and have the ability upload a profile avatar, a capability commonly granted to all users. Exploitation is straightforward: the attacker creates a malicious SVG, uploads it, and waits for victims to view the avatar, at which point the payload executes. Given the ubiquity of avatar uploads, the risk remains significant for any deployed instance of the affected software.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Configure the application to reject SVG files or any files containing embedded <script> tags during avatar upload
  • Implement strict server‑side MIME type validation and enforce only safe image formats such as PNG or JPEG
  • Deploy a Content Security Policy that blocks inline scripts from avatar images to provide an additional defense

Generated by OpenCVE AI on August 10, 2026 at 19:48 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
References
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Lobehub
Lobehub lobe Chat
Vendors & Products Lobehub
Lobehub lobe Chat
Type Values Removed Values Added
Description A stored cross-site scripting (XSS) vulnerability in lobehub/lobe-chat through v2.2.13 allows a low-privileged authenticated user to inject arbitrary JavaScript into the application by uploading a crafted SVG file as a user avatar. The avatar upload handler derives the stored file extension and S3 content type from the original filename rather than inspecting file content, enabling an attacker to store an SVG containing a script element that executes in the browser of any user who views the attacker's profile or avatar. A stored cross-site scripting (XSS) vulnerability in lobehub/lobe-chat through v2.2.13 allows a low-privileged authenticated user to inject arbitrary JavaScript into the application by uploading a crafted SVG file as a user avatar.
Type Values Removed Values Added
Description A stored cross-site scripting (XSS) vulnerability in lobehub/lobe-chat through v2.2.13 allows a low-privileged authenticated user to inject arbitrary JavaScript into the application by uploading a crafted SVG file as a user avatar. The avatar upload handler derives the stored file extension and S3 content type from the original filename rather than inspecting file content, enabling an attacker to store an SVG containing a script element that executes in the browser of any user who views the attacker's profile or avatar.
Title lobehub lobe-chat - Stored Cross-Site Scripting via Unrestricted SVG Avatar Upload
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 7.6, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
TuranSec
Published
Updated
Aug 10, 2026, 1:26 PM
Reserved
Aug 10, 2026, 10:32 AM
Status
Deferred
Published
Aug 10, 2026, 11:17 AM
Modified
Oct 24, 2026, 3:10 PM