# CVE-2026-57147: PraisonAI JWT authentication bypass with hardcoded secret

Source: https://junglewise.ai/threats/cve-2026-57147-praisonai-jwt-authentication-bypass-with-hardcoded-secret  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-09-15. Updated: 2026-09-26  
License: CC BY 4.0 with a link back

CVE-2026-57147 · Severity: critical · CVSS 9.8 · Published 2026-09-15

PraisonAI is a multi-agent team system platform with API endpoints protected by JWT authentication. When the JWT secret is not explicitly configured and the environment is not explicitly set to production, the platform falls back to a publicly known default secret key, allowing unauthenticated attackers to forge valid authentication tokens and gain unauthorized access to protected API endpoints.

Technologies: [praisonai-platform (PyPI)](https://junglewise.ai/threats/technologies/praisonai-platform). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2026-57147 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-57147 being exploited in the wild.

**How severe is CVE-2026-57147?** Critical severity, with a CVSS score of 9.8, published 15 September 2026.

**Which products and versions are affected?** praisonai-platform (PyPI) ECOSYSTEM:introduced=0,fixed=0.1.6.

**Is there a fix for CVE-2026-57147?** Yes. praisonai-platform (PyPI): upgrade to 0.1.6 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-57147 attacked?** It is attacked over the network.

**Am I affected by CVE-2026-57147?** Check whether you run praisonai-platform (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- praisonai-platform (PyPI): upgrade to 0.1.6 or later

  ```sh
  pip install "praisonai-platform>=0.1.6"
  ```


## Technical details

The vulnerability is an authentication bypass in praisonai_platform/services/auth_service.py stemming from unsafe JWT secret defaults. When the PLATFORM_JWT_SECRET environment variable is unset, the service assigns the hardcoded, publicly known value "dev-secret-change-me" as the JWT signing key. Additionally, the PLATFORM_ENV environment variable defaults to "dev" when unset, preventing the production guard that would reject insecure configurations from executing. A remote unauthenticated attacker can mint HS256 JWT tokens with arbitrary claims (sub, email) and authenticate to protected API routes without legitimate credentials. The AuthService._verify_token() and get_current_user() functions accept these forged tokens. This vulnerability is fixed in version 0.1.6 by no longer defaulting PLATFORM_ENV to dev and auto-generating an ephemeral random secret with a warning when PLATFORM_JWT_SECRET is absent in non-dev environments.

## Affected products

- MervinPraison PraisonAI before 0.1.6

## Identifiers

- CVE-2026-57147
- GHSA-cwj8-7gp2-ggcw
- PYSEC-2026-3524

## Timeline

- 2026-09-15: disclosed
- 2026-06-03: patched: Fixed in commit e0fb8e7 and released in version 0.1.6

## References

- [https://github.com/MervinPraison/PraisonAI/commit/e0fb8e7dd1ee6759c18ed07f436c21dbd9c20747](https://github.com/MervinPraison/PraisonAI/commit/e0fb8e7dd1ee6759c18ed07f436c21dbd9c20747)
- [https://github.com/MervinPraison/PraisonAI/pull/1793](https://github.com/MervinPraison/PraisonAI/pull/1793)

## Related threats

- [PraisonAI missing authorization check on DELETE endpoints](https://junglewise.ai/threats/cve-2026-57121-praisonai-missing-ownership-check-on-delete-endpoints-allows)
- [PraisonAI Platform authorization bypass in issue dependency deletion](https://junglewise.ai/threats/cve-2026-62179-praisonai-platform-members-can-delete-owner-issue-dependencies)
- [PraisonAI JWT authentication bypass with hardcoded dev secret](https://junglewise.ai/threats/cve-2026-57148-praisonai-jwt-authentication-bypass-with-hardcoded-dev-secret)
- [PraisonAI Platform IDOR and privilege escalation in Platform API](https://junglewise.ai/threats/cve-2026-48169-praisonai-platform-idor-and-privilege-escalation-in-platform-api)
- [MervinPraison PraisonAI Platform IDOR in agent CRUD endpoints](https://junglewise.ai/threats/cve-2026-47419-mervinpraison-praisonai-platform-idor-in-agent-crud-endpoints)
