MEDIUM 6.5

CVE-2026-58578: LobeChat ReDoS Vulnerability in Skill Import – CVSS 6.5

LobeChat before version 2.2.10-canary.15 has a regular expression denial of service (ReDoS) flaw. An authenticated attacker can supply a specially crafted GitHub repository URL during skill import that causes the application to enter a CPU-intensive loop, freezing the service for tens of seconds and blocking all other users. The vulnerability stems from unsafe handling of user-supplied input that gets injected into a regex pattern without proper escaping.

Source data · NVD / CISA · public domain

CVSS
3.1 · 6.5 MEDIUM · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weaknesses (CWE)
CWE-1333
Affected products
0 configuration(s)
Published / Modified
2026-07-02 / 2026-07-14

NVD description (verbatim)

LobeChat before version 2.2.10-canary.15 contains a regular expression denial of service (ReDoS) vulnerability that allows authenticated attackers to block the Node.js event loop by supplying a catastrophic-backtracking pattern in a GitHub repository URL path during skill import. Attackers can craft a malicious basePath value containing unescaped regex metacharacters such as catastrophic-backtracking patterns, which are injected into a dynamically constructed regular expression in the findSkillMd function and executed synchronously against archive entries, denying service to all concurrent users for tens of seconds per request.

5 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

The vulnerability exists in the findSkillMd function, which constructs a regular expression dynamically using an unsanitized basePath parameter derived from a GitHub repository URL. When an authenticated user imports a skill, attacker-controlled input containing catastrophic-backtracking regex metacharacters (such as alternations with overlapping branches like (a+)+b) is embedded directly into the regex pattern and executed synchronously against archive entries. This causes exponential backtracking behavior that blocks the Node.js event loop, denying service to concurrent users. The synchronous execution amplifies the impact by preventing other requests from being processed during the backtracking phase.

Business impact

While exploitability requires authentication, the impact is severe for multi-tenant or shared LobeChat deployments. A single malicious authenticated user can render the entire service unavailable for all other users for extended periods by triggering skill imports with crafted URLs. This affects availability SLAs and user productivity. In environments where user accounts are easy to obtain or where internal users may be compromised, the attack surface is broader.

Affected systems

LobeChat versions before 2.2.10-canary.15 are affected. The vulnerability is specific to the skill import functionality that processes GitHub repository URLs. Any deployment allowing authenticated users to import skills is at risk.

Exploitability

Exploitation requires valid authentication credentials, which limits immediate external attack surface. However, the attack itself is trivial to execute—an attacker simply supplies a malicious basePath value during normal skill import workflow. No user interaction is needed beyond the import action, and the payload can be crafted with minimal technical knowledge. For organizations with permissive user provisioning or where compromised credentials are possible, the practical exploitability is high. The vulnerability is not currently in CISA's Known Exploited Vulnerabilities (KEV) catalog.

Remediation

Upgrade LobeChat to version 2.2.10-canary.15 or later. This version addresses the vulnerability by properly escaping or validating the basePath parameter before regex construction. Verify the patch against the vendor advisory to ensure the exact version matches the fix. As an interim mitigation, restrict the skill import feature to trusted administrators or disable it entirely until patching is complete.

Patch guidance

Apply the LobeChat update to 2.2.10-canary.15 or newer. Verify the upgrade in your deployment environment and confirm that skill import functionality behaves normally after patching. If you are on a stable release track, monitor vendor announcements for the availability of this fix in a non-canary release. Test the patch in a staging environment before production rollout to ensure compatibility with your deployment.

Detection guidance

Monitor application logs for unusual skill import requests with complex or suspicious basePath values, particularly those containing regex metacharacters or repetitive patterns. Look for periods of high CPU utilization on Node.js processes coinciding with skill import operations. Network-level monitoring may reveal prolonged request hangs followed by timeout events. Endpoint detection and response (EDR) tools can flag sustained CPU consumption by the Node.js process without corresponding I/O activity, which is indicative of regex backtracking.

Why prioritize this

Although this is a MEDIUM severity vulnerability requiring authentication, it should be prioritized for patching in organizations where skill import is actively used or where user account compromise is a realistic threat model. The ability to cause complete service denial with minimal effort makes it more urgent than the CVSS score alone suggests. Prioritize patching for internet-facing or multi-tenant LobeChat instances ahead of isolated or internal deployments.

Risk score, explained

The CVSS 3.1 score of 6.5 (MEDIUM) reflects the authentication requirement (PR:L) and purely availability impact (A:H), with no confidentiality or integrity compromise. The score appropriately penalizes the lower likelihood of exploitation due to the need for valid credentials. However, security leaders should recognize that within authenticated user populations or in scenarios of credential compromise, the practical impact approaches HIGH severity. The synchronous event-loop blocking creates a denial of service that affects all concurrent users, which is a severe business impact even if the vulnerability requires a foothold.

Frequently asked questions

Can an unauthenticated attacker exploit this vulnerability?

No. The vulnerability requires valid authentication credentials to access the skill import functionality. An attacker must first obtain legitimate or compromised LobeChat user credentials.

What makes a regex 'catastrophic backtracking' and why is it a denial of service?

Catastrophic backtracking occurs when a regex pattern with nested quantifiers (like (a+)+) tries to match input with many repetitions. The regex engine explores exponentially many paths, consuming CPU for seconds or longer. Because LobeChat processes this synchronously, it blocks the entire Node.js event loop, preventing any other user requests from being processed until the backtracking completes.

Is there a workaround if I cannot patch immediately?

Yes. Disable or restrict access to the skill import feature to a small set of trusted administrators. Alternatively, use network-level controls to limit which users can access LobeChat or implement additional authentication layers. However, patching is the permanent solution.

How can I tell if someone has exploited this in my environment?

Look for periods where LobeChat becomes unresponsive lasting tens of seconds, coinciding with skill import operations. Check application and system logs for slow requests during that window. CPU usage on the Node.js process may spike without corresponding disk I/O, and multiple other users may report simultaneous timeouts.

This analysis is based on the vulnerability description and CVSS vector provided. Specific patch version numbers, affected product lists, and KEV status reflect the source data as of the publication date. Organizations should verify patch availability and compatibility with their specific LobeChat deployment before applying updates. No exploit code or detailed weaponization steps are provided. This document is for informational purposes and should not substitute for vendor security advisories or your organization's incident response and vulnerability management procedures. Source: NVD (public-domain), retrieved 2026-08-11. Analysis generated by SEC.co (claude-haiku-4-5).