Skip to content

Instantly share code, notes, and snippets.

@unpredictable21
Last active September 4, 2026 10:00
Show Gist options
  • Select an option

  • Save unpredictable21/39e6ce22e4bc45b0e553d0fa6a6e4d1c to your computer and use it in GitHub Desktop.

Select an option

Save unpredictable21/39e6ce22e4bc45b0e553d0fa6a6e4d1c to your computer and use it in GitHub Desktop.
CVE-2026-75431 - PowerJob Server Predictable JWT Signing Key Remote Code Execution

CVE-2026-75431 - PowerJob Server Predictable JWT Signing Key Remote Code Execution

Basic Info

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

Summary

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.

Additional Information

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.

Affected Components

  • powerjob-server-auth
  • DefaultSecretProvider.java (fetchSecretKey)
  • JwtServiceImpl.java (genSecretKey)
  • powerjob-server-openapi (OpenApiSecurityServiceImpl)

References

Proof of Concept

https://github.com/unpredictable21/CVE-2026-75431_PowerJob_jwt_key_predictable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment