Skip to main content

BISHENG CVE-2026-130840

| EUVDEUVD-2026-127262 CRITICAL
Use of Hard-coded Cryptographic Key (CWE-321)
2026-11-17 VulnCheck GHSA-cm6c-9mm3-95m4
9.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify internet-reachable BISHENG instance
  2. Delivery
    Obtain hard-coded jwt_secret from source
  3. Exploit
    Forge HS256 token for user_id 1 admin
  4. Execution
    Send as access_token_cookie
  5. Impact
    Gain full administrative control

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Key management, no hard-coded keys
Exploitation Conditions

Exploitation requires that the target BISHENG instance still uses the built-in hard-coded jwt_secret for login-cookie signing - which, per the vendor design doc, is the state of default deployments because they never overrode the value. No authentication, user interaction, or non-default feature enablement is needed (AV:N/AC:L/PR:N/UI:N) beyond network reachability of the web interface. Limiting factors: an operator who set a custom jwt_secret in config.yaml is not affected, and the legacy defaults are blacklisted after upgrade; personal access tokens and open-API credentials do not use this key and are unaffected; and instances on 3.0.0 or later auto-generate a random per-deployment secret.

Impact

Signals align toward high real-world risk, with one dimension that reduces breadth. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N, VC:H/VI:H/VA:H, score 9.3) describes a network-reachable, low-complexity flaw needing no privileges or user interaction, and the vuln.today decision label is act_now. The mechanism amplifies this: because the signing key is hard-coded (CWE-321) and, per the vendor design doc, default deployments never overrode it, an attacker can mint a valid admin token entirely offline - there is no rate limit, lockout, or server-side state to defeat, so successful forgery is effectively deterministic rather than probabilistic. No EPSS score is provided and the CVE is not listed in CISA KEV, so there is no quantitative exploitation-probability signal and no confirmation of active exploitation; treat those as missing rather than as evidence of low risk. No verified working exploit code is listed either - the VulnCheck advisory documents the technique but is not flagged as a confirmed PoC. The main factor limiting real-world risk is deployment footprint: BISHENG is a niche open-source LLM application platform, so exposure is far narrower than the CVSS score alone implies. Net: a genuine priority to patch on any exposed instance, consistent with act_now, but the population of affected systems is small compared to a ubiquitous-product critical.

Exploit ScenarioDerived

An attacker who knows BISHENG uses a publicly known hard-coded jwt_secret crafts an HS256 JWT offline that names user_id 1 with the admin role, then sends it to a reachable BISHENG instance as the access_token_cookie. The server validates the forged token against the built-in secret and grants full administrative access to users, workspaces, knowledge bases and workflows, with no authentication, interaction, or special timing required. No verified working exploit code is published, but the VulnCheck advisory and the vendor commit describe the technique in enough detail to reproduce it.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 1.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 18, 2026

Authentication bypass in BISHENG before 3.0.0 lets unauthenticated remote attackers impersonate an administrator by forging an HS256 login cookie with the hard-coded default jwt_secret that the AuthJwt component falls back to whenever config.yaml does not override it. Because the key is public in the source, an attacker can mint a token offline naming user_id 1 with the admin role and send it as access_token_cookie, gaining full administrative control over users, workspaces, knowledge bases and workflows. The vendor closed the root cause in 3.0.0 (commit b98e2bc) by shipping no built-in default and auto-generating a per-deployment secret; no public exploit code has been identified at time of analysis, but the vendor's own design note records that default deployments never overrode the value, so exposure is effectively the default state - the vuln.today decision label is act_now.

RemediationAI

Vendor-released patch: 3.0.0 (fix commit https://github.com/dataelement/bisheng/commit/b98e2bc5c819a6a8d35538d91eab85833bd77703, tracked as F068), with the design note in docs/architecture/08-deployment.md describing the upgrade behaviour per configuration case. After upgrading, no manual steps are required: instances whose config.yaml never set jwt_secret get a random secrets.token_urlsafe(48) value generated on first start and stored in the config table under key jwt_secret and shared by all api and worker processes, instances with a private yaml value keep using it, and yaml values copied from the old built-in defaults are blacklisted and treated as unset. The unavoidable side effect of every case is that all existing login cookies become invalid and every user must sign in again once; personal access tokens and open-API credentials do not use this key and are unaffected. Operators who cannot move to 3.0.0 immediately should set a long random jwt_secret in config.yaml and restart all backend processes so the built-in value is no longer used, accepting the same forced re-login for all users and the need to keep api and worker processes on the same value. To rotate deliberately on 3.0.0, change the yaml value or run DELETE FROM config WHERE key='jwt_secret' and restart every backend process. Because the key is public in the source, treat any pre-upgrade BISHENG deployment as potentially already accessed by an administrative token and restrict network reachability of the web interface to trusted networks until the upgrade is complete.

Affected VersionsENISA

bisheng 0 <3.0.0

Affected Packages

euvd bisheng fix: 3.0.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is CWE-321 (use of a hard-coded cryptographic key) in BISHENG's Flask-style login-cookie authentication: AuthJwt signs and verifies the access_token_cookie with the symmetric jwt_secret drawn from Settings, and the token payload is trusted on the strength of that signature and a user_id claim. Source evidence shows the secret previously carried a code-level default (reported as secret in 2.4 and secret_cF2k… in 2.6-plus, visible in src/backend/bisheng/core/config/settings.py around line 752 of v2.6.0-fix2), and the default deployment path never replaced it, so anyone reading the repository can compute a valid admin token entirely offline with no interaction with the server beyond presenting the cookie. The 3.0.0 fix sets settings.jwt_secret to an empty string, keeps the historical values in a LEGACY_JWT_SECRETS blacklist in a new jwt_secret domain service, and resolves the effective key through a documented order: a non-blacklisted yaml value, then an in-process cached generated value, then a lookup in the system config table under key jwt_secret, generated once with secrets.token_urlsafe(48) and shared by all api and worker processes (concurrent first-boot inserts are resolved via the key uniqueness constraint and an IntegrityError re-read). Only login cookies use this key; personal access tokens and open-API credentials are compared against database records and are unaffected. The trigger for exploitation is deliberate offline token forgery, not a race or timing condition; the CVSS vector's AC:L/AT:N/PR:N/UI:N simply reflects that no privileges or user action are needed once the network-reachable web interface is reachable.

Know when Bisheng gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 9.3 CRITICAL
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 9.8 CRITICAL

A publicly known hard-coded key lets any network attacker forge an admin token offline with no auth or interaction (AV:N/AC:L/PR:N/UI:N); full admin over the app yields C:H/I:H/A:H with no scope change.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

BISHENG before 3.0.0 contains an authentication bypass vulnerability that allows unauthenticated remote attackers to impersonate administrators by abusing a hard-coded default jwt_secret used by AuthJwt. Attackers can forge an HS256 token offline naming user_id 1 with the admin role, send it as access_token_cookie, and gain full administrative access to users, workspaces, knowledge bases and workflows.

Executive ViewAI

Why It Matters

BISHENG versions before 3.0.0 contain an authentication bypass that allows unauthenticated attackers to impersonate an administrator and gain full control over users, workspaces, knowledge bases, and workflows. Because the vulnerable default configuration is shipped out-of-the-box, the majority of deployments are likely affected, posing a critical risk to data confidentiality, integrity, and operational trust in the platform.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
1.0%
Top 36% exploitable
Prevalence
Low
niche open-source LLM application platform, limited production footprint
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 1.0%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Very High

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy