CVE-2026-137660

stylefeng Guns JWT Signing TokenAndPermissionInterceptor.java TokenAndPermissionInterceptor.preHandle hard-coded key

Published Nov 26, 2026 CVSS 4.0 · 6.9 Medium EPSS n/a KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The flaw exists in a component that signs and validates JSON Web Tokens; a constant cryptographic key is embedded in the source code. This means that any token issued by the application can be forged using the known key, allowing an attacker to create a valid token that authenticates as any user. The weakness is a classic example of using a weak cryptographic key (CWE‑320) and of hard‑coding a secret (CWE‑321).

Affected Systems

All installations of stylefeng Guns versions 2.2 and earlier that rely on the TokenAndPermissionInterceptor for request authentication are vulnerable. The problem manifests whenever the default configuration is used and the hard‑coded key has not been replaced by a unique secret.

Risk and Exploitability

The CVSS base score of 6.9 indicates moderate severity. EPSS data is not available and the vulnerability is not listed in the CISA KEV catalog, but the description states that the attack can be launched remotely. The remote nature of the exploit and the ability to forge authentication tokens suggest that a malicious actor could obtain unauthorized access to protected APIs, potentially reading or modifying sensitive data or performing actions with elevated privileges.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to the latest Guns release that removes the hard‑coded JWT secret.
  • If an upgrade is not possible, reconfigure the application to use a unique, randomly generated secret key, storing it securely (for example, in an environment variable or a secret manager).
  • Modify the TokenAndPermissionInterceptor to validate that the JWT signature matches the configured key and reject any tokens signed with the hard‑coded value.

Generated by OpenCVE AI on November 27, 2026 at 01:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description 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.
Title stylefeng Guns JWT Signing TokenAndPermissionInterceptor.java TokenAndPermissionInterceptor.preHandle hard-coded key
First Time appeared Stylefeng
Stylefeng guns
Weaknesses CWE-320
CWE-321
CPEs cpe:2.3:a:stylefeng:guns:*:*:*:*:*:*:*:*
Vendors & Products Stylefeng
Stylefeng guns
References
Metrics cvssV2_0

{'score': 7.5, 'vector': 'AV:N/AC:L/Au:N/C:P/I:P/A:P/E:ND/RL:ND/RC:C'}

cvssV3_0

{'score': 7.3, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:X/RL:X/RC:C'}

cvssV3_1

{'score': 7.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:X/RL:X/RC:C'}

cvssV4_0

{'score': 6.9, 'vector': '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:X'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Nov 26, 2026, 11:00 PM
Reserved
Nov 26, 2026, 4:21 PM
Status
Deferred
Published
Nov 26, 2026, 11:17 PM
Modified
Nov 26, 2026, 11:17 PM