Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessRead hard-coded key from public repo
-
ExploitForge JWT signed with known secret
-
ExecutionSubmit crafted token to user-service
-
ImpactImpersonate target user remotely
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 | The prerequisite is concrete: the signing secret used by creatJwtToken/freeJwt in user-service/user-provider/.../JwtTokenUtils.java is hard-coded in source, so any attacker with access to the public gpmall GitHub repository already possesses the key needed to mint valid tokens against a deployed instance. No authentication, user interaction, or non-default configuration is required (PR:N/UI:N), and the attack is remote (AV:N). What LIMITS real-world exploitation is deployment scope rather than technical difficulty: gpmall must actually be running and network-reachable, and because it is an open-source demo/learning project its exposed production instances are few; impact is also bounded by whatever authorization the forged JWT grants within the user-service. |
| Impact | The signals here are modest and internally consistent, pointing to a real but non-urgent issue. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) describes a flaw reachable remotely over the network with low complexity and no privileges or user interaction, which fits a hard-coded JWT signing key (CWE-321) that any attacker can read from the public source repository and reuse to forge tokens. However, the vendor-assigned impact is deliberately conservative - VC:L/VI:L/VA:L and an overall 6.9 (Medium) - so this is not scored as a full authentication-bypass/account-takeover despite the mechanism plausibly enabling one; I weight this as a disagreement between mechanism and assigned impact worth verifying. There is no CISA KEV listing and no EPSS value supplied, so there is no evidence of active or widespread exploitation. The only exploit signal is a GitHub issue reference (a public PoC reference, not verified as working exploit code), and the vuln.today Decision label is 'this_month' rather than act_now/emergency. Net: a legitimate code-level defect that should be remediated on a normal cadence, not a widespread-exploitation emergency, with the key caveat that the affected product (gpmall) is a small open-source demo/learning project rather than enterprise-deployed software, limiting real-world blast radius. |
| Exploit ScenarioDerived | Because the JWT signing key in JwtTokenUtils.java is hard-coded in the public gpmall repository, an attacker who reads the source learns the secret and can craft a validly-signed JWT remotely, impersonating a chosen user to the user-service without any credentials. A public PoC reference exists (GitHub issue #226) but it is not verified as working exploit code. The attack needs only network access to a running gpmall instance and no user interaction. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 28, 2026
Because the JWT signing key in gpmall's user-service (JwtTokenUtils.java, creatJwtToken/freeJwt) is hard-coded in the public source tree, unauthenticated remote attackers can read the secret from the GitHub repository and mint tokens that a deployed instance will accept. No authentication, user interaction or special configuration is required (PR:N/UI:N); the practical limit is that gpmall must be running and network-reachable, and since it is an open-source learning/demo project such exposed deployments are few, with impact bounded by whatever authority a forged token grants inside user-service. The project's rolling-release model means no affected or fixed version numbers can be pinned; a public PoC reference exists (the upstream issue report) but it is not verified as working exploit code, there is no CISA KEV confirmation, and priority is assessed as moderate (this_month).
RemediationAI
No vendor-released patch was identified at time of analysis: the project was notified through issue 226 (https://github.com/2227324689/gpmall/issues/226) and had not responded, and the rolling-release model means no fixed version can be cited, so operators must remediate locally. Replace the hard-coded signing secret in JwtTokenUtils.java with a per-deployment value supplied from an environment variable or secret manager, and rotate it - noting that because the key lives in source this requires rebuilding and redeploying the user-service, and rotation immediately invalidates all JWTs already issued to legitimate users, forcing re-authentication. Until a rebuild is possible, reduce exposure by placing gpmall's user-service behind authenticated network controls or restricting it to trusted networks, accepting that this limits the demo's usability rather than fixing the flaw. Add server-side token validation that rejects tokens signed with the known public key or shortens token lifetime, with the trade-off of increased re-login friction for users. Monitoring for anomalous token issuance from unexpected source addresses can provide early warning, but it is detection, not prevention; consult the VulDB entries linked above for any later vendor update.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The affected code is a Java JWT utility class, user-service/user-provider/src/main/java/com/gpmall/user/utils/JwtTokenUtils.java, in a Spring Cloud based microservice mall demo. The creatJwtToken and freeJwt functions rely on a cryptographic signing key embedded directly in source, which is CWE-321 (use of a hard-coded cryptographic key): the secret is not derived per-deployment and is not injected from configuration, so its disclosure is automatic for anyone who can read the repository, and every deployment built from this code shares the same signing material. Token integrity and authenticity therefore rest on a publicly known value, and token validation on the server side cannot distinguish attacker-forged tokens from legitimately issued ones. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N, low confidentiality/integrity/availability impact, no subsequent-system impact) and the independently assessed CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N) both describe a remotely reachable, unauthenticated flaw with limited effect; the trigger requires no race, memory grooming or unusual configuration, and no further exploitation mechanics are described in the available sources. The vulnerability is in the JWT issuance/verification path of the user microservice, so the blast radius is the authorization surface that user-service consumes tokens for.
Know when Gpmall 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:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Hard-coded key is readable from the public repo and tokens are forged remotely with no auth (AV:N/AC:L/PR:N/UI:N); impact kept to C:L/I:L and A:N, consistent with the vendor's limited rating.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
2DescriptionCVE.org
A vulnerability was found in 2227324689 gpmall up to c5dd5bacb052e2d4afda5ed1f7f07c17428192d5. This issue affects the function creatJwtToken/freeJwt of the file user-service/user-provider/src/main/java/com/gpmall/user/utils/JwtTokenUtils.java. Performing a manipulation results in use of hard-coded cryptographic key . The attack is possible to be carried out remotely. The exploit has been made public and could be used. This product adopts a rolling release strategy to maintain continuous delivery. Therefore, version details for affected or updated releases cannot be specified. The project was informed of the problem early through an issue report but has not responded yet.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
EUVD-2026-137627
GHSA-grwq-7w3v-xv5r
NVD
CVE.org
EPSS
VulDB
Exploit-DB