NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · LobeChat

CVE-2026-23835: LobeHub Vulnerable to Improper Authorization in Presigned Upload

mediumCVSS 4.0 5.7GHSA-wrrr-8jcv-wjf5

LobeHub (npm package @lobehub/chat) before 1.143.3 trusts the file name and size that the client sends when it records a Knowledge Base upload. A signed-in user can change those fields to upload more than the plan allows while the server records a smaller size. The result is quota bypass, storage and billing abuse and possible degraded service. Fixed in 1.143.3.

Published Feb 1, 2026 · Analysis Nov 1, 2026

What an attacker can do

After a file is uploaded to storage, the client calls POST /trpc/lambda/file.createFile?batch=1 to register it. That request carries the name and size fields, and the server used the client's size to count usage against the monthly plan. Nothing checked the request against the real object. An attacker who intercepts and edits it, for example with Burp Suite, can report a 1 GB file as 10 MB, or change the name to place the file under an unintended path.

The attacker needs only a normal account on the instance. The effects named in the advisory are monthly quota bypass, a gap between real resource use and billing that costs the operator money, storage exhaustion that can fail uploads for others, and an indirect denial of service for other users or projects on the same subscription. Unaccounted uploads can also overload backup, malware scanning and media processing pipelines. The advisory describes no code execution or data theft.

Who is affected

@lobehub/chat below 1.143.3. The flaw is in the Knowledge Base file upload flow, so instances that enable uploads with a quota or plan limit, such as hosted or multi-user deployments, are the ones affected. Check the version:

npm ls @lobehub/chat

For Docker deployments, read the image tag.

@lobehub/chat

Ecosystem
npm
Affected
< 1.143.3
Fixed in
1.143.3
Check
npm ls @lobehub/chat

How to fix it

Upgrade to @lobehub/chat 1.143.3.

The fix changes createFile in src/server/routers/lambda/file.ts. It now calls getFileMetadata on the uploaded object, which sends an S3 HeadObject request, and stores the returned contentLength in place of the size from the client. Presigned URL creation is untouched. The advisory lists no workaround.

How to tell if you were hit

Compare the sizes stored for Knowledge Base files with the real object sizes in your S3 bucket, and look for users whose stored usage is far below the bucket's actual bytes for their objects. Review the request log for POST /trpc/lambda/file.createFile calls where the size does not match the uploaded object, and for object keys in unusual paths. Watch storage growth against billed usage.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

The file upload feature in Knowledge Base > File Upload does not validate the integrity of the upload request, allowing users to intercept and modify the request parameters. As a result, it is possible to create arbitrary files in abnormal or unintended paths. In addition, since lobechat.com relies on the size parameter from the request to calculate file usage, an attacker can manipulate this value to misrepresent the actual file size, such as uploading a 1 GB file while reporting it as 10 MB, or falsely declaring a 10 MB file as a 1 GB file.

Details

After entering the Knowledge Base, click the file upload option and upload any file. At this point, use a tool such as Burp Suite to intercept and inspect the request sent to POST /trpc/lambda/file.createFile?batch=1 (the request packet is shown in the image below). By modifying the name and size fields in this request, it is possible to bypass the maximum upload size enforced by LobeChat’s monthly subscription plan and upload files beyond the intended service storage limits.

Impacts

By manipulating the size value provided in the client upload request, it is possible to bypass the monthly upload quota enforced by the server and continuously upload files beyond the intended storage and traffic limits. This abuse can result in a discrepancy between actual resource consumption and billing calculations, causing direct financial impact to the service operator. Additionally, exhaustion of storage or related resources may lead to degraded service availability, including failed uploads, delayed content delivery, or temporary suspension of upload functionality for legitimate users. A single malicious user can also negatively affect other users or projects sharing the same subscription plan, effectively causing an indirect denial of service (DoS). Furthermore, excessive and unaccounted-for uploads can distort monitoring metrics and overload downstream systems such as backup processes, malware scanning, and media processing pipelines, ultimately undermining overall operational stability and service reliability

PoC

Credited to uko3211.

Questions

Does CVE-2026-23835 need an account?

Yes. The CVSS 4.0 vector requires low privileges. The attacker is a user who can use the Knowledge Base upload feature.

Can it expose or change other users' files?

The advisory does not describe that. It names quota bypass, billing mismatch, storage exhaustion and file creation at unintended paths.

Which version fixes the issue?

1.143.3. The server now takes the file size from S3 metadata instead of the client request.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More LobeChat vulnerabilities

All LobeChat entries