CVE-2026-137660 in Gunsinfo

Summary

by MITRE • 11/27/2026

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.

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Analysis

by VulDB Data Team • 11/28/2026

The vulnerability identified in stylefeng Guns versions up to 2.2 represents a critical failure in cryptographic implementation within the JWT signing mechanism, specifically located in the TokenAndPermissionInterceptor.preHandle method found in the TokenAndPermissionInterceptor.java file. This flaw is categorized under CWE-798: Use of Hard-coded Cryptographic Key, which denotes the practice of embedding secret keys directly into source code rather than deriving them from a secure key management system or configuration store. By utilizing a hard-coded cryptographic key for JSON Web Token (JWT) signing and verification, the application fails to adhere to fundamental security principles regarding key lifecycle management and secrecy. This architectural decision creates a single point of failure where the integrity and authenticity of authentication tokens are compromised because the secret required to validate these tokens is publicly accessible within the compiled binary or source code repository.

From an operational perspective, this vulnerability allows for remote exploitation by any attacker who can access the application's network interface. Since JWTs rely on shared secrets to ensure that a token has not been tampered with and originates from a trusted issuer, knowledge of the hard-coded key enables adversaries to forge arbitrary tokens. An attacker could generate valid authentication tokens for any user role or administrative privilege without possessing legitimate credentials. This effectively bypasses all access control mechanisms enforced by the JWT middleware, granting unauthorized entities full read and write access to protected resources. The ability to launch this attack remotely means that no prior local access or physical proximity is required, significantly expanding the attack surface and increasing the risk of widespread compromise across deployed instances where default configurations remain unchanged.

The impact extends beyond simple authentication bypass to include potential data exfiltration, privilege escalation, and complete system takeover depending on the permissions associated with forged tokens. If administrative roles can be assumed through token forgery, an attacker may manipulate application logic, alter database records, or execute further exploits within the backend infrastructure. Furthermore, because the key is hard-coded, it cannot be rotated easily without a code deployment cycle, meaning that once the vulnerability is known and exploited, the damage persists until the software vendor releases a patch with a new secret. This lack of dynamic key rotation exacerbates the long-term risk associated with the flaw, as compromised keys remain valid indefinitely unless manually updated by developers who may not be immediately aware of the exposure or responsive to security reports.

Mitigation strategies must prioritize the immediate removal of hard-coded secrets in favor of secure configuration practices. The most effective remediation involves replacing the static key with a strong, randomly generated secret that is stored securely outside the application codebase, such as in environment variables, dedicated vaults like HashiCorp Vault or AWS Secrets Manager, or encrypted configuration files with restricted file system permissions. Additionally, implementing regular key rotation policies ensures that even if a key is compromised, its utility to an attacker is limited by time. Developers should also adopt automated secret scanning tools during the CI/CD pipeline to detect hard-coded credentials before they reach production environments. Until such patches are applied and deployed by the project maintainers, organizations running affected versions of stylefeng Guns should consider isolating these instances from untrusted networks or implementing network-level access controls as a temporary compensatory measure while awaiting vendor response.

Responsible

VulDB

Disclosure

11/27/2026

Moderation

accepted

CPE

ready

EPSS

0.00409

KEV

no

Activities

very low

Sources

Want to stay up to date on a daily basis?

Enable the mail alert feature now!