Vulnerability library
Security checkApril 09, 2026

LobeHub: Unauthenticated authentication bypass on `webapi` routes via forgeable `X-lobe-chat-auth` header

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpm@lobehub/lobehub

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

The webapi authentication layer trusts a client-controlled X-lobe-chat-auth header that is only XOR-obfuscated, not signed or otherwise authenticated. Because the XOR key is hardcoded in the repository, an attacker can forge arbitrary auth payloads and bypass authentication on protected webapi routes.

Recommendation

Update the @lobehub/lobehub package to the latest compatible version. Followings are version details:

  • Affected version(s): <= 2.1.47
  • Patched version(s): 2.1.48

References

Could your website be exposed too?

SmartScanner can check your website for LobeHub: Unauthenticated authentication bypass on `webapi` routes via forgeable `X-lobe-chat-auth` header and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated April 09, 2026