Skip to main content

stylefeng Guns CVE-2026-137660

| EUVDEUVD-2026-136895 MEDIUM
Key Management Errors (CWE-320)
2026-11-26 cna@vuldb.com GHSA-9h8v-927p-g98f
6.9
CVSS 4.0 · Vendor: vuldb
View

Attack ChainAIDerived

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

  1. Access
    Read hard-coded signing key from public source
  2. Delivery
    Forge validly signed JWT token
  3. Exploit
    Submit token to protected endpoint
  4. Execution
    Interceptor accepts forged token
  5. Impact
    Gain unauthorized access

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Key management controls
Exploitation Conditions

Applies to deployments running stylefeng Guns up to and including 2.2 that use its JWT-based authentication, where TokenAndPermissionInterceptor signs and validates tokens with a key hard-coded in the source. Because the project is open source, that key is public, so exploitation needs no special configuration, authentication or user interaction - only that the affected JWT auth path is in use and reachable over the network. Limiting factors: real-world severity is bounded by what the JWT-protected endpoints actually authorize, and no vendor fix exists yet because the maintainer has not responded to the report.

Impact

Signals point to a real but modest-priority issue. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) describes remote, unauthenticated, low-complexity reachability with no user interaction, and the base score of 6.9 (medium) reflects the vendor-rated low impact to confidentiality, integrity and availability (VC:L/VI:L/VA:L). The underlying weakness - CWE-320, a hard-coded cryptographic key used to sign JWTs - is architecturally serious because Guns is open source, so the signing key is publicly readable and any attacker can forge valid tokens; this gives the low-impact rating a plausible ceiling above what the numbers suggest. Countering that, there is no CISA KEV listing, no EPSS score supplied, and no confirmed working exploit, so there is no evidence of active or widespread exploitation; VulDB's own priority label is 'this_month' rather than an emergency. The practical impact depends on what the JWT-protected endpoints authorize, which the available sources do not specify - a data gap that should be closed by reviewing how Guns uses the forged token. Net: a genuine authentication weakness to remediate on a normal patch cadence, not a drop-everything emergency.

Exploit ScenarioDerived

Because Guns is open source, an attacker reads the hard-coded JWT signing key directly from the public repository and uses it to mint a validly signed JWT for an account or role of their choosing. They send the forged token to the application's JWT-protected endpoints (processed by TokenAndPermissionInterceptor.preHandle), which accepts it as authentic, granting unauthorized access. No working exploit tool is confirmed, but the primitive is trivial to reproduce from source.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.4% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 26, 2026

Hard-coded JWT signing key in stylefeng Guns through 2.2 lets remote, unauthenticated attackers forge authentication tokens. The key is embedded in TokenAndPermissionInterceptor.java, so anyone who can read the open-source repository can mint tokens that the interceptor will accept, sidestepping the login and permission checks it enforces. Assessed impact stays low across confidentiality, integrity and availability (CVSS:3.1 6.9, AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N) because real-world damage is bounded by what the JWT-protected endpoints actually expose; the maintainer was notified via GitHub issue 117 but has not responded, so no vendor fix exists, and no public exploit identified at time of analysis.

RemediationAI

No vendor-released patch identified at time of analysis: the maintainer has not responded to the report at https://github.com/stylefeng/Guns/issues/117 and no fixed release appears in the available data. The only complete fix is to remove the embedded secret - replace the hard-coded key in TokenAndPermissionInterceptor.java with a value injected at deploy time (environment variable or external keystore) and rebuild the application; this forces a key rotation, invalidates all existing tokens and requires users to re-authenticate. Merely editing the constant in source is not durable, because a new value committed to a public repository becomes public again. Because the shipped key must be treated as compromised, assume any token accepted by an unpatched instance can be forged: review authentication and access logs for tokens with unexpected claims or subjects and invalidate sessions on affected hosts. Until a patched build exists, restrict network reachability of JWT-protected endpoints to trusted networks or front them with a gateway that performs its own authentication - the trade-off is that legitimate remote clients are blocked or must authenticate twice, and the added hop must be maintained separately.

Affected VersionsENISA

Guns 2.1
Guns 2.2
Guns 2.0

Affected Packages

euvd guns no fix

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

Guns is a Java/Spring-based administration framework (VulDB tags the record Java and Information Disclosure). Its TokenAndPermissionInterceptor is a Spring MVC-style handler interceptor whose preHandle method gates incoming requests: it extracts the JWT from the request, verifies its signature, and derives the caller's identity and permissions from the token claims. The flaw is that this signing and validation uses a cryptographic key that is hard-coded in TokenAndPermissionInterceptor.java rather than loaded from deployment-specific configuration. The record is classified under CWE-320 (key management errors) and described as use of a hard-coded cryptographic key. Because the project is open source, the embedded secret is effectively public, so an attacker who knows it can produce correctly signed tokens with arbitrary claims - as long as the HMAC/JWT auth path is reachable over the network and in use, no special configuration, credentials or user interaction is required. The sources do not describe any further trigger condition, and the assessed vector caps the outcome at partial confidentiality and integrity loss, since the practical reach of a forged token is limited to the endpoints that trust the interceptor.

Know when Java 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 (vuldb) PRIMARY 6.9 MEDIUM
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
vuln.today AI 6.5 MEDIUM

Publicly readable hard-coded key enables remote unauthenticated JWT forgery (AV:N/AC:L/PR:N/UI:N); impact kept low and A:N per vendor signal, as authorization granted by forged tokens is not documented.

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

Primary rating from Vendor (vuldb).

CVSS VectorVendor: vuldb

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

DescriptionCVE.org

A vulnerability has been found in stylefeng Guns up to 2.2. Affected by this issue is the function TokenAndPermissionInterceptor.preHandle of the file TokenAndPermissionInterceptor.java of the component JWT Signing. Such manipulation leads to use of hard-coded cryptographic key . It is possible to launch the attack remotely. The project was informed of the problem early through an issue report but has not responded yet.

Threat Intelligence Overview

EPSS Score
0.4%
Top 73% exploitable
Prevalence
Low
niche open-source Java/SpringBoot rapid-development framework, limited production footprint
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
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· derived
Medium

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Java

View all
CVE-2012-4681 CRITICAL POC
9.8 Aug 28

Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m

CVE-2015-7450 CRITICAL POC
9.8 Jan 02

Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti

CVE-2013-2465 CRITICAL POC
9.8 Jun 18

Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent

CVE-2011-3544 CRITICAL POC
9.8 Oct 19

Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug

CVE-2010-1871 HIGH POC
8.8 Aug 05

JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to

CVE-2012-1723 CRITICAL POC
9.8 Jun 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up

CVE-2013-0422 CRITICAL POC
9.8 Jan 10

Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2015-4852 CRITICAL POC
9.8 Nov 18

The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers

CVE-2012-5076 CRITICAL POC
9.8 Oct 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow

CVE-2017-3066 CRITICAL POC
9.8 Apr 27

Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla

CVE-2012-0391 CRITICAL POC
9.8 Jan 08

The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during

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