Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify internet-reachable BISHENG instance
-
DeliveryObtain hard-coded jwt_secret from source
-
ExploitForge HS256 token for user_id 1 admin
-
ExecutionSend as access_token_cookie
-
ImpactGain 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
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
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Code injection in DataElement BiSheng 2.3.0, 2.4.0, and 2.4.0-beta1 allows unauthenticated network attackers to execute
Unauthenticated workflow execution in BISHENG before 3.0.0 allows remote attackers to invoke or stop workflows through /
Unauthenticated SSRF in DataElement bisheng through 2.6.0-fix2 exposes internal network services and cloud metadata endp
Remote code execution in BISHENG's workflow engine (versions before 2.6.0) allows any authenticated user to submit craft
Directory traversal in Bisheng 2.3.0, 2.4.0, and 2.4.0-beta1 allows unauthenticated remote attackers to read arbitrary f
Authenticated low-privileged users can read other users' and tenants' extracted document text in Bisheng through 3.0.0-b
EUVD-2026-127262
GHSA-cm6c-9mm3-95m4
NVD
CVE.org
EPSS
Exploit-DB