CVE-2026-47410: praisonai-platform: hardcoded JWT → full account takeover

GHSA-3qg8-5g3r-79v5 CRITICAL
Published May 29, 2026
CISO Take

PraisonAI Platform's authentication service ships with a hardcoded JWT signing secret ('dev-secret-change-me') as its default, and the safety guard meant to catch this is silently bypassed because PLATFORM_ENV also defaults to 'dev' — meaning a standard pip install plus uvicorn launch is fully exploitable with zero operator warning. Any attacker who reads the public GitHub source can forge valid JWTs for arbitrary user IDs, impersonating workspace owners and administrators with no prior authentication whatsoever. The package carries 59 other CVEs in the same codebase and has at least one downstream dependent, amplifying the blast radius across AI agent deployments built on this platform. Upgrade immediately to praisonai-platform >= 0.1.4; if patching is not immediately possible, explicitly set PLATFORM_JWT_SECRET to a cryptographically strong random value and PLATFORM_ENV to any non-'dev' string, then rotate all existing sessions.

Sources: GitHub Advisory NVD ATLAS

What is the risk?

Critical. CVSS 9.8 with a network-accessible attack vector, zero required privileges, and no user interaction needed. Exploitation is trivial — the signing key is publicly visible in the GitHub repository and a working exploit requires four lines of Python using the standard PyJWT library. Any internet-exposed praisonai-platform deployment running <= 0.1.2 without explicitly configured secrets is fully compromised. The default deployment path (pip install + uvicorn) hits this condition with no warning emitted. No confirmed public PoC repository has been indexed, but the exploit chain is elementary enough that any attacker with basic scripting skills can reproduce it within minutes of reading the advisory.

Attack Kill Chain

Reconnaissance
Attacker reads auth_service.py from the public MervinPraison/PraisonAI GitHub repository and extracts the hardcoded JWT signing secret 'dev-secret-change-me'.
AML.T0095.000
Initial Access
Attacker identifies a live internet-exposed praisonai-platform instance via Shodan and registers a free account to confirm the deployment is unpatched and to observe the user UUID format.
AML.T0049
Credential Forgery
Attacker forges a JWT signed with the known hardcoded secret and the target workspace owner's UUID as the sub claim, bypassing all authentication checks with four lines of Python.
AML.T0055
Full Account Takeover
Forged JWT passes _verify_token HMAC validation and grants attacker full authenticated access as any target user, enabling data exfiltration, agent configuration manipulation, and workspace destruction.
AML.T0012

What systems are affected?

Package Ecosystem Vulnerable Range Patched
praisonai-platform pip <= 0.1.2 0.1.4
1 dependents 86% patched ~0d to patch Full package profile →

Do you use praisonai-platform? You're affected.

Severity & Risk

CVSS 3.1
9.8 / 10
EPSS
N/A
Exploitation Status
No known exploitation
Sophistication
Trivial

Attack Surface

AV AC PR UI S C I A
AV Network
AC Low
PR None
UI None
S Unchanged
C High
I High
A High

What should I do?

5 steps
  1. Patch: Upgrade praisonai-platform to >= 0.1.4 immediately — this release inverts the guard to fail-closed.

  2. Workaround if patching is blocked: Set PLATFORM_JWT_SECRET to a cryptographically random string of at least 32 bytes AND set PLATFORM_ENV to any value other than 'dev'; both variables must be set because the original guard requires both conditions.

  3. Rotate all sessions: After patching or applying the workaround, rotate PLATFORM_JWT_SECRET to invalidate all tokens issued under the hardcoded secret — any token previously issued must be considered compromised.

  4. Detection: Audit authentication logs for JWTs whose sub claim does not correspond to a registration event, or for successful /auth/me calls originating from unexpected source IPs.

  5. Network hardening: If praisonai-platform is not intended to be internet-facing, apply firewall rules to restrict API access to trusted networks while patching proceeds.

Classification

Compliance Impact

This CVE is relevant to:

EU AI Act
Art. 15 - Accuracy, robustness and cybersecurity
ISO 42001
A.6.2 - AI system security
NIST AI RMF
GOVERN-1.7 - Processes and safeguards for AI risk management
OWASP LLM Top 10
LLM07 - Insecure Plugin Design

Frequently Asked Questions

What is CVE-2026-47410?

PraisonAI Platform's authentication service ships with a hardcoded JWT signing secret ('dev-secret-change-me') as its default, and the safety guard meant to catch this is silently bypassed because PLATFORM_ENV also defaults to 'dev' — meaning a standard pip install plus uvicorn launch is fully exploitable with zero operator warning. Any attacker who reads the public GitHub source can forge valid JWTs for arbitrary user IDs, impersonating workspace owners and administrators with no prior authentication whatsoever. The package carries 59 other CVEs in the same codebase and has at least one downstream dependent, amplifying the blast radius across AI agent deployments built on this platform. Upgrade immediately to praisonai-platform >= 0.1.4; if patching is not immediately possible, explicitly set PLATFORM_JWT_SECRET to a cryptographically strong random value and PLATFORM_ENV to any non-'dev' string, then rotate all existing sessions.

Is CVE-2026-47410 actively exploited?

No confirmed active exploitation of CVE-2026-47410 has been reported, but organizations should still patch proactively.

How to fix CVE-2026-47410?

1. Patch: Upgrade praisonai-platform to >= 0.1.4 immediately — this release inverts the guard to fail-closed. 2. Workaround if patching is blocked: Set PLATFORM_JWT_SECRET to a cryptographically random string of at least 32 bytes AND set PLATFORM_ENV to any value other than 'dev'; both variables must be set because the original guard requires both conditions. 3. Rotate all sessions: After patching or applying the workaround, rotate PLATFORM_JWT_SECRET to invalidate all tokens issued under the hardcoded secret — any token previously issued must be considered compromised. 4. Detection: Audit authentication logs for JWTs whose sub claim does not correspond to a registration event, or for successful /auth/me calls originating from unexpected source IPs. 5. Network hardening: If praisonai-platform is not intended to be internet-facing, apply firewall rules to restrict API access to trusted networks while patching proceeds.

What systems are affected by CVE-2026-47410?

This vulnerability affects the following AI/ML architecture patterns: agent frameworks, multi-tenant AI platforms, AI agent orchestration.

What is the CVSS score for CVE-2026-47410?

CVE-2026-47410 has a CVSS v3.1 base score of 9.8 (CRITICAL).

AI Security Impact

Affected AI Architectures

agent frameworksmulti-tenant AI platformsAI agent orchestration

MITRE ATLAS Techniques

AML.T0012 Valid Accounts
AML.T0049 Exploit Public-Facing Application
AML.T0055 Unsecured Credentials
AML.T0095.000 Code Repositories

Compliance Controls Affected

EU AI Act: Art. 15
ISO 42001: A.6.2
NIST AI RMF: GOVERN-1.7
OWASP LLM Top 10: LLM07

Technical Details

Original Advisory

## Summary **Type:** Insecure default cryptographic key. The JWT signing secret defaults to the hardcoded literal `"dev-secret-change-me"` when `PLATFORM_JWT_SECRET` is unset. A safety check exists but only fires when `PLATFORM_ENV != "dev"`; the default value of `PLATFORM_ENV` is `"dev"`, so the check is silently bypassed in any deployment that does not explicitly opt out. The attacker reads the literal from this public source file, mints a JWT with arbitrary `sub` and `email` claims, and authenticates as any existing user (including workspace owners and admins). **File:** `src/praisonai-platform/praisonai_platform/services/auth_service.py`, lines 25-36 and 114-137. **Root cause:** the production-mode guard checks `os.environ.get("PLATFORM_ENV", "dev") != "dev"` — but the default is `"dev"`, so a clean deployment that just imports the package and runs `uvicorn praisonai_platform.api.app:app` proceeds with the hardcoded secret. The package documentation does not warn loudly enough that BOTH variables must be set; the guard suppresses itself when either condition is missed. JWT verification at line 129 trusts whatever the token says (`sub`, `email`, `name`) once the HMAC-SHA256 signature validates against the publicly-known secret. Since the verifier accepts forged tokens for any user_id, the attacker becomes that user across every authenticated route. ## Affected Code **File:** `src/praisonai-platform/praisonai_platform/services/auth_service.py`, lines 25-36 and 114-137. ```python _DEFAULT_SECRET = "dev-secret-change-me" JWT_SECRET = os.environ.get("PLATFORM_JWT_SECRET", _DEFAULT_SECRET) # <-- BUG: silent fallback JWT_ALGORITHM = "HS256" JWT_TTL_SECONDS = int(os.environ.get("PLATFORM_JWT_TTL", str(30 * 24 * 3600))) if JWT_SECRET == _DEFAULT_SECRET and os.environ.get("PLATFORM_ENV", "dev") != "dev": raise RuntimeError( # <-- only fires if PLATFORM_ENV is non-default "PLATFORM_JWT_SECRET must be set to a strong random value in production. " "Set PLATFORM_ENV=dev to suppress this check during development." ) # ... def _issue_token(self, user: User) -> str: payload = { "sub": user.id, "email": user.email, "name": user.name, "iat": now, "exp": now + timedelta(seconds=JWT_TTL_SECONDS), } return jwt.encode(payload, JWT_SECRET, algorithm=JWT_ALGORITHM) # signs with the hardcoded secret def _verify_token(self, token: str) -> Optional[AuthIdentity]: try: payload = jwt.decode(token, JWT_SECRET, algorithms=[JWT_ALGORITHM]) # verifies with the hardcoded secret return AuthIdentity( id=payload["sub"], # <-- attacker chooses sub type="user", email=payload.get("email"), name=payload.get("name"), ) except jwt.InvalidTokenError: return None ``` **Why it's wrong:** the guard's predicate is wrong. The intent — "warn loudly if a production deployment ships without setting the secret" — is correct, but the implementation requires the operator to set BOTH variables (`PLATFORM_JWT_SECRET` and `PLATFORM_ENV != "dev"`) for the guard to fire. A common deployment misconfiguration is to set only one (or neither): `pip install praisonai-platform`, `uvicorn praisonai_platform.api.app:app --host 0.0.0.0`, done. The package starts with no warning, the JWT signing key is the literal string sitting in this source file, and any attacker who reads the GitHub repo can forge tokens. The standard pattern is to fail-closed at import time when the secret is the default, regardless of any environment variable. The code at line 32-36 inverts that: it fails-open by default and only fails-closed when the operator opts in. ## Exploit Chain 1. Attacker reads `auth_service.py:25` from the public GitHub repo (`MervinPraison/PraisonAI`) and notes `_DEFAULT_SECRET = "dev-secret-change-me"`. State: attacker holds the JWT signing key. 2. Attacker identifies a target deployment of `praisonai-platform` (Shodan search for the FastAPI route `/auth/me`, the `praisonai_platform` user-agent, or any indexed installation). Attacker registers a free account at `POST /auth/register` to confirm the deployment is live and to obtain at least one valid JWT token whose structure they can copy. State: attacker holds a live account. 3. Attacker enumerates the platform's user IDs via any of the IDOR primitives filed as separate advisories (issue `created_by`, agent `owner_id`, comment `author_id`, member list via the workspace-member-IDOR), or simply queries `/auth/me` with their own token to learn the UUID format. State: attacker has a target user UUID `T_id` (e.g. a workspace owner of any tenant). 4. Attacker forges a JWT: ```python import jwt, time payload = {"sub": "T_id", "email": "victim@example.com", "name": "victim", "iat": int(time.time()), "exp": int(time.time()) + 3600} token = jwt.encode(payload, "dev-secret-change-me", algorithm="HS256") ``` State: attacker holds a JWT that the deployment's `_verify_token` will accept as authentic. 5. Attacker sends `GET /auth/me` with `Authorization: Bearer <forged_token>`. `_verify_token` decodes the token using `JWT_SECRET = "dev-secret-change-me"`, the HMAC matches, an `AuthIdentity(id="T_id", ...)` is returned. The route resolves the actual `User` row by `User.id == "T_id"` and returns the victim's record. State: attacker is authenticated as the victim. 6. Attacker pivots: `POST /workspaces/{id}/members` to add themselves as owner (chaining with the companion priv-esc advisory becomes redundant — the attacker is already the victim), `PATCH /workspaces/{id}` to flip settings, `DELETE /workspaces/{id}` to wipe data, or simply `GET /workspaces/{id}/issues/...` to exfiltrate everything the victim could read. 7. Final state: full account takeover for any user_id on any deployment that did not explicitly set both `PLATFORM_JWT_SECRET` and `PLATFORM_ENV=production`. No prior auth, no user interaction, no special network position required. ## Security Impact **Severity:** sec-critical. CVSS 9.8: network attack, low complexity, no privileges, no user interaction, scope unchanged (the JWT layer is the same component the attacker pivots through), high confidentiality, high integrity, high availability (chaining with `delete_workspace` from the companion advisory). **Attacker capability:** mint a JWT for any `user_id` on the deployment with the public secret, becoming that user across every authenticated route. No prior authentication required — the attacker only needs the package to be deployed and reachable. This is a pre-auth full account takeover. **Preconditions:** `praisonai-platform` is deployed without explicitly setting BOTH `PLATFORM_JWT_SECRET` AND `PLATFORM_ENV=<non-dev>`. The default deployment pattern (pip install, `uvicorn ...`) hits this. The attacker needs network reachability to the API. **Differential:** source-inspection-verified end-to-end. The asymmetry is between the documented intent of the guard (warn in production) and its actual semantics (warn only when the operator sets `PLATFORM_ENV` to a non-"dev" value). With the suggested fix below, the guard fails-closed: any deployment that did not set `PLATFORM_JWT_SECRET` raises at import time, regardless of `PLATFORM_ENV`. The forged-token attack returns `None` from `_verify_token` because the signing key the attacker used (`"dev-secret-change-me"`) no longer matches the deployment's secret. ## Suggested Fix Fail-closed at import time when the secret is the default, irrespective of `PLATFORM_ENV`. Permit explicit dev-mode opt-in with a separate variable that is NEVER the default. ```diff --- a/src/praisonai-platform/praisonai_platform/services/auth_service.py +++ b/src/praisonai-platform/praisonai_platform/services/auth_service.py @@ -23,12 +23,16 @@ _pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto") -_DEFAULT_SECRET = "dev-secret-change-me" -JWT_SECRET = os.environ.get("PLATFORM_JWT_SECRET", _DEFAULT_SECRET) +JWT_SECRET = os.environ.get("PLATFORM_JWT_SECRET") JWT_ALGORITHM = "HS256" JWT_TTL_SECONDS = int(os.environ.get("PLATFORM_JWT_TTL", str(30 * 24 * 3600))) -if JWT_SECRET == _DEFAULT_SECRET and os.environ.get("PLATFORM_ENV", "dev") != "dev": - raise RuntimeError( - "PLATFORM_JWT_SECRET must be set to a strong random value in production. " - "Set PLATFORM_ENV=dev to suppress this check during development." - ) +if not JWT_SECRET: + if os.environ.get("PRAISONAI_PLATFORM_ALLOW_INSECURE_JWT") != "1": + raise RuntimeError( + "PLATFORM_JWT_SECRET must be set to a strong random value (min 32 bytes). " + "For local development, set PRAISONAI_PLATFORM_ALLOW_INSECURE_JWT=1 to " + "auto-generate an ephemeral random secret per process." + ) + import secrets + JWT_SECRET = secrets.token_urlsafe(32) + # ephemeral; tokens issued before restart will not validate after restart + import warnings + warnings.warn("Using ephemeral JWT secret; set PLATFORM_JWT_SECRET in production") ``` The guard now fails-closed: an unset `PLATFORM_JWT_SECRET` raises at import unless the operator explicitly opts into dev mode with a separate variable. The dev-mode path generates a per-process random secret instead of using a hardcoded one, so even leaked dev-mode tokens cannot be used against another deployment. Add a startup banner that prints the JWT secret's hash prefix (not the secret itself) so operators can confirm at runtime which key is in use.

Exploitation Scenario

An adversary targeting AI agent infrastructure scans Shodan or Censys for FastAPI instances exposing the /auth/me route or the praisonai_platform user-agent string. After confirming a live target, the attacker retrieves auth_service.py line 25 from the public MervinPraison/PraisonAI GitHub repository to obtain the signing secret. They register a free account on the target deployment to confirm it is unpatched and to observe the UUID format used for user identifiers. They enumerate a workspace owner's UUID through companion IDOR vulnerabilities documented in separate advisories for the same package. With four lines of Python and the standard PyJWT library, the attacker forges a JWT signed with 'dev-secret-change-me' and the owner's UUID as the sub claim. The platform's _verify_token function validates the HMAC-SHA256 signature, returns an AuthIdentity for the victim, and grants the attacker full authenticated access. The entire attack chain requires no specialized AI or cryptographic expertise and can be completed in under five minutes.

CVSS Vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Timeline

Published
May 29, 2026
Last Modified
May 29, 2026
First Seen
May 30, 2026

Related Vulnerabilities