Skip to content
Hardcoded JWT Secrets in Two Open-Source Projects Enable Token Forgery

Hardcoded JWT Secrets in Two Open-Source Projects Enable Token Forgery

First seen 29 Nov 2026, 21:48 UTC •

Article Content

Browse articles
ThreatCluster AI
ThreatCluster •November 29, 2026 at 21:49 UTC
  • •Both projects reportedly ship hardcoded JWT signing secrets that are visible to anyone with repository access.
  • •A forged token built with the known secret could impersonate arbitrary users, including administrators, per the reports.
  • •The IAM project reportedly starts without warning when default secret values are in use.
  • •The Spring Cloud Platform report describes a reusable tokenId check weakness in addition to the hardcoded RSA seed.
  • •Recommended fix in both reports is to load the secret from environment variables and refuse default values.

Two GitHub issues, both published 2026-11-29, report that open-source projects (marmotedu/iam and wxiaoqi/Spring-Cloud-Platform) ship hardcoded JWT signing secrets in their repositories.

The IAM project reportedly contains the fixed value 'asfdlajsdfaf234' in a committed build artifact (dist/config.js) and a default 'secret-key' in an example config, and the report states that starting the project with these defaults produces no warning.

The Spring Cloud Platform report describes a hardcoded RSA key seed ('xx1WET12^%3^(WE45') from which an attacker could reproduce the RSA key pair and forge tokens that pass RS256 verification.

Per the reports, an attacker holding the secret could construct JWTs with arbitrary user IDs or identity fields, which the services would accept, enabling impersonation including of administrators.

The Spring Cloud report additionally states that the gateway checks only whether a tokenId exists in Redis, not whether it belongs to the token's subject, so a valid tokenId from the attacker's own session can be reused in a forged token.

The IAM report notes that the database lookup on decoded.id does not prevent impersonation because the ID comes from the attacker-controlled payload. Both reports recommend moving the secret to environment variables or refusing to start with default values.

The articles are issue-tracker entries rather than CVE-assigned advisories, and no exploitation in the wild or affected user counts are reported.

Start a free Starter trial for enhanced analysis

Ask AI about this cluster

Or ask in your own assistant: ClaudeChatGPTPerplexityGemini

Timeline

2026-11-29
IAM project issue #101 published on GitHub
The issue reports a hardcoded JWT secret in dist/config.js and an example config, with default startup showing no warning.
github.com
2026-11-29
Spring Cloud Platform issue #63 published on GitHub
The issue reports a hardcoded RSA key seed in application.yml and a tokenId validation gap at the gateway.
github.com

More articles in this cluster (2)

Common questions

Am I affected if I use these projects?
Deployments that kept the default or committed secret values, or that used the hardcoded RSA seed, are described as exposed. Check your JWT secret and key configuration against the values named in the issues.
Is there evidence these secrets are being abused?
Neither issue reports exploitation in the wild or compromised deployments.
What should defenders do first?
Rotate any JWT secret or RSA seed that matches the published values, move it to environment variables, and make startup fail when defaults are detected.