CVE-2025-51606: hippo4j Includes Hard Coded Secret Key in JWT Creation
hippo4j 1.0.0 to 1.5.0, uses a hard-coded secret key in its JWT (JSON Web Token) creation. This allows attackers with access to the source code or compiled binary to forge valid access tokens and impersonate any user, including privileged ones such as "admin". The vulnerability poses a critical security risk in systems where authentication and authorization rely on the integrity of JWTs.
Published Aug 21, 2025 · Updated Aug 22, 2025
Affected packages
cn.hippo4j:hippo4j-core
- Ecosystem
- Maven
- Affected
- >= 1.0.0, <= 1.5.0
- Fixed in
- No patched version yet
- Check
mvn dependency:tree -Dincludes=cn.hippo4j:hippo4j-core
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
hippo4j 1.0.0 to 1.5.0, uses a hard-coded secret key in its JWT (JSON Web Token) creation. This allows attackers with access to the source code or compiled binary to forge valid access tokens and impersonate any user, including privileged ones such as "admin". The vulnerability poses a critical security risk in systems where authentication and authorization rely on the integrity of JWTs.
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-51606
- https://github.com/ShenxiuSec/cve-proofs/blob/main/POC-20250610-01.md
- https://github.com/opengoofy/hippo4j/blob/7d78be3cab526501ad876495862f4cec108da2af/threadpool/server/auth/src/main/java/cn/hippo4j/auth/security/JwtTokenManager.java#L51
- https://github.com/advisories/GHSA-48cg-9c55-j2q7
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
