| Field | Value |
|---|---|
| CVE ID | CVE-2026-75431 |
| Vulnerability Type | Remote Code Execution (RCE) |
| Vendor of Product | https://github.com/PowerJob/PowerJob |
| Affected Product Code Base | PowerJob - 5.1.2 (and likely earlier) |
| Attack Type | Remote |
| Impact | Code execution |
| Discoverer | Yujie He |
PowerJob Server version 5.1.2 (and likely earlier) uses a predictable JWT signing key for HS256-based authentication. This allows a remote attacker to execute arbitrary code.
The vulnerability has been verified end-to-end on PowerJob 5.1.2 with the default configuration. The derived encryptedToken (ADMIN_b82a450701f6a71723fb99931fe35e18_b) exactly matches the value stored in the database for the PWJB_ADMIN account when using the default password. A proof-of-concept Python script (powerjob_jwt_forge.py) has been developed that computes the key and generates a valid admin JWT offline; it successfully bypasses authentication on /namespace/list and returns real data.
The issue is exacerbated by the fact that the JDBC URL is often left unchanged in production deployments, making the key fully predictable. A separate OpenAPI App Token forgery path exists even if the admin password is changed.
- powerjob-server-auth
- DefaultSecretProvider.java (fetchSecretKey)
- JwtServiceImpl.java (genSecretKey)
- powerjob-server-openapi (OpenApiSecurityServiceImpl)
- https://github.com/PowerJob/PowerJob/blob/master/powerjob-server/powerjob-server-auth/src/main/java/tech/powerjob/server/auth/jwt/impl/DefaultSecretProvider.java
- https://github.com/PowerJob/PowerJob/blob/master/powerjob-server/powerjob-server-auth/src/main/java/tech/powerjob/server/auth/jwt/impl/JwtServiceImpl.java
- https://github.com/PowerJob/PowerJob/blob/master/powerjob-server/powerjob-server-openapi/src/main/java/tech/powerjob/server/openapi/service/impl/OpenApiSecurityServiceImpl.java
- https://github.com/PowerJob/PowerJob/blob/master/docker-compose.yml
- https://github.com/PowerJob/PowerJob/blob/master/powerjob-server/powerjob-server-starter/src/main/resources/application-daily.properties
https://github.com/unpredictable21/CVE-2026-75431_PowerJob_jwt_key_predictable