Hardcoded JWT Secrets in Two Open-Source Projects Enable Token Forgery
Article Content
- •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.
Ask AI about this cluster
Answers cite the sources they use
Timeline
More articles in this cluster (2)
Common questions
Am I affected if I use these projects?
Is there evidence these secrets are being abused?
What should defenders do first?
Continue Reading
Broadcom patches critical VMware vCenter auth bypass flaws Broadcom disclosed VMware Security Advisory VMSA-2026-0009 on November 19, 2026, covering vulnerabilities in VMware vCenter, Tools, and SDDC Manager. CVE-2026-123890, a CVSS 9.8 authentication bypass in the VMware Directory Service, is listed in CISA's KEV catalog, which the verified record gives as 2026-11-20.…
Critical WP Rocket Path Traversal RCE (CVE-2026-125812) Under Active Exploitation CVE-2026-125812 is a path traversal flaw in the WP Rocket WordPress caching plugin, fixed in version 3.24.2, that allows unauthenticated remote code execution. Patchstack scores it CVSS 3.1 9.8 and says every release before 3.24.2 is affected; WP Media states the plugin is installed on more than 5.6 million sites. The…