Skip to main content

Use of Hard-coded Credentials

CVE-2026-57147

Severity High
Score 9.8/10

Summary

PraisonAI is a Python framework for building and launching AI agents. PraisonAI is a Python framework for building and launching AI agents. In the praisonai-platform package in versions through 0.1.4, "praisonai_platform/services/auth_service.py" signs and verifies authentication JWTs with a hardcoded default secret, "dev-secret-change-me", whenever "PLATFORM_JWT_SECRET" is unset. The startup guard intended to prevent this only raises when the secret is the default and "PLATFORM_ENV" is explicitly set to a value other than "dev"; because "PLATFORM_ENV" defaults to "dev" when unset, an operator who deploys without setting either environment variable -- the common mis-deploy -- silently runs with the public default secret and no error. As a result, a remote unauthenticated attacker can forge a JWT signed with the known default secret carrying any "sub" (user id), email, and name, and every route protected by "get_current_user" (via "AuthService._verify_token") accepts the forged token as proof of identity. By minting a token with a known member's id, the attacker can also bypass the workspace membership check in "require_workspace_member". This issue has been patched in praisonai-platform version 0.1.6.

  • LOW
  • NETWORK
  • HIGH
  • UNCHANGED
  • NONE
  • NONE
  • HIGH
  • HIGH

CWE-798 - Use of Hard-coded Credentials

The software contains hard-coded credentials, such as a password or cryptographic key, which it uses for its own inbound authentication, outbound communication to external components, or encryption of internal data.

References

Advisory Timeline

  • Published