CyberGuardAI 安全情报工作区
AI 安全知识情报
LJH 管理员
返回首页 漏洞库

PraisonAI AgentOS默认无鉴权暴露智能体接口

摘要与解读

PraisonAI的AgentOS默认无鉴权并绑定全网卡,可未授权调用智能体并泄露系统提示词。

六维情报分析

6 个维度 · 原文可溯源

影响范围

  • praisonai · < 1.7.3(低于 1.7.3)
  • 影响npm包praisonai(TypeScript)的AgentOS:默认绑定0.0.0.0且apiKey为空时跳过鉴权,任何网络对端可GET /api/agents读取系统提示词/指令,或POST /api/chat调用智能体;受影响版本<1.7.3,1.7.3修复。

    原文依据 · 3
    nt system prompts and drive the agent. Runtime-confirmed; severity High. ## Details ### Affected component - Package: `praisonai` (npm / TypeScript). Files `src/praisonai-ts/src/os/config.ts` and `src/praisonai-ts/src/os/agentos.ts` (`AgentOS`). ### Vulnerable code / root cause Path: `src/praisonai-ts/src/os/config.ts` Class/const: `DEFAULT_AGENTOS_CONFIG` / `mergeConfig` Snippet: ```ts export const DEFAULT_AGENTOS_CONFIG = { host: '0.0.0.0', corsOrigins: ['*'], apiKey: '', // ... }; // mergeConfig: apiKey = userConfig?.apiKey ?? process.env.PRAISONAI_AGENTOS_API_KEY ?? ''; ``` I
    查看原文 · v1
    ss-Control-Allow-Credentials: true` with a wildcard origin. ### Attack flow 1. Developer deploys AgentOS via the quickstart without setting `apiKey`/`PRAISONAI_AGENTOS_API_KEY`. 2. Any network peer calls `GET /api/agents` → receives agent instructions/system prompts. 3. Any network peer calls `POST /api/chat` → invokes the agent. ### Why existing protection is bypassed There is no protection in the default config — the auth gate is skipped when `apiKey` is empty (the default), and the server binds all interfaces. ### Security boundary Unauthenticated network access to agent metadata + invoc
    查看原文 · v1
    redentials. ## Suggested remediation - Default `host` to `127.0.0.1`; require `apiKey` (fail closed) when binding non-loopback. - Do not default `corsOrigins` to `['*']`, especially with `Access-Control-Allow-Credentials: true`. - Do not return full `instructions` on an unauthenticated endpoint. affected_products: {"ecosystem": "npm", "name": "praisonai"} affected_versions: {"package": {"ecosystem": "npm", "name": "praisonai"}, "range": "< 1.7.3"} fixed_versions: {"package": {"ecosystem": "npm", "name": "praisonai"}, "version": "1.7.3"} cvss: {"score": 8.6, "vector": "CVSS:3.1/AV:N/AC:L/PR:N/
    查看原文 · v1

关联资产

  • praisonai · npm
  • 来源提及的产品/部署条件:npm生态的praisonai包(<1.7.3受影响,1.7.3修复),通过quickstart部署的AgentOS、未设置apiKey/PRAISONAI_AGENTOS_API_KEY、绑定非回环地址;

    原文依据 · 3
    nt system prompts and drive the agent. Runtime-confirmed; severity High. ## Details ### Affected component - Package: `praisonai` (npm / TypeScript). Files `src/praisonai-ts/src/os/config.ts` and `src/praisonai-ts/src/os/agentos.ts` (`AgentOS`). ### Vulnerable code / root cause Path: `src/praisonai-ts/src/os/config.ts` Class/const: `DEFAULT_AGENTOS_CONFIG` / `mergeConfig` Snippet: ```ts export const DEFAULT_AGENTOS_CONFIG = { host: '0.0.0.0', corsOrigins: ['*'], apiKey: '', // ... }; // mergeConfig: apiKey = userConfig?.apiKey ?? process.env.PRAISONAI_AGENTOS_API_KEY ?? ''; ``` I
    查看原文 · v1
    ss-Control-Allow-Credentials: true` with a wildcard origin. ### Attack flow 1. Developer deploys AgentOS via the quickstart without setting `apiKey`/`PRAISONAI_AGENTOS_API_KEY`. 2. Any network peer calls `GET /api/agents` → receives agent instructions/system prompts. 3. Any network peer calls `POST /api/chat` → invokes the agent. ### Why existing protection is bypassed There is no protection in the default config — the auth gate is skipped when `apiKey` is empty (the default), and the server binds all interfaces. ### Security boundary Unauthenticated network access to agent metadata + invoc
    查看原文 · v1
    redentials. ## Suggested remediation - Default `host` to `127.0.0.1`; require `apiKey` (fail closed) when binding non-loopback. - Do not default `corsOrigins` to `['*']`, especially with `Access-Control-Allow-Credentials: true`. - Do not return full `instructions` on an unauthenticated endpoint. affected_products: {"ecosystem": "npm", "name": "praisonai"} affected_versions: {"package": {"ecosystem": "npm", "name": "praisonai"}, "range": "< 1.7.3"} fixed_versions: {"package": {"ecosystem": "npm", "name": "praisonai"}, "version": "1.7.3"} cvss: {"score": 8.6, "vector": "CVSS:3.1/AV:N/AC:L/PR:N/
    查看原文 · v1

风险评估

  • 来源报告的后果包括:未授权泄露智能体配置与系统提示、未授权调用智能体、LLM费用滥用、依配置工具可能被滥用,以及通配CORS叠加Allow-Credentials带来的跨域凭据风险;来源给出CVSS 8.6(AV:N/AC:L/PR:N/...,向量被截断),未提供EPSS或利用成功率。

    原文依据 · 3
    ss-Control-Allow-Credentials: true` with a wildcard origin. ### Attack flow 1. Developer deploys AgentOS via the quickstart without setting `apiKey`/`PRAISONAI_AGENTOS_API_KEY`. 2. Any network peer calls `GET /api/agents` → receives agent instructions/system prompts. 3. Any network peer calls `POST /api/chat` → invokes the agent. ### Why existing protection is bypassed There is no protection in the default config — the auth gate is skipped when `apiKey` is empty (the default), and the server binds all interfaces. ### Security boundary Unauthenticated network access to agent metadata + invoc
    查看原文 · v1
    df8f56-b8d8-498b-87bd-44834f39998c" /> ### Reproduction assets The attached archive contains the local Docker runtime used to reproduce the issue with controlled canary values only. It does not contain real secrets, third-party API keys, or production credentials. [PraisonAI-Runtime-Repro.zip](https://github.com/user-attachments/files/29143421/PraisonAI-Runtime-Repro.zip) ## Impact Unauthenticated disclosure of agent configuration/system prompts; unauthenticated agent invocation; LLM cost abuse; possible tool abuse depending on the configured agent's tools; permissive CORS-with-credentials
    查看原文 · v1
    redentials. ## Suggested remediation - Default `host` to `127.0.0.1`; require `apiKey` (fail closed) when binding non-loopback. - Do not default `corsOrigins` to `['*']`, especially with `Access-Control-Allow-Credentials: true`. - Do not return full `instructions` on an unauthenticated endpoint. affected_products: {"ecosystem": "npm", "name": "praisonai"} affected_versions: {"package": {"ecosystem": "npm", "name": "praisonai"}, "range": "< 1.7.3"} fixed_versions: {"package": {"ecosystem": "npm", "name": "praisonai"}, "version": "1.7.3"} cvss: {"score": 8.6, "vector": "CVSS:3.1/AV:N/AC:L/PR:N/
    查看原文 · v1

相关研究

  • 根因定位在src/praisonai-ts/src/os/config.ts的DEFAULT_AGENTOS_CONFIG与mergeConfig:host默认0.0.0.0、corsOrigins默认['*']、apiKey默认空字符串并回退环境变量;涉及AgentOS(agentos.ts)。来源为GitHub安全公告(GHSA-6wjp-v33h-5cvq),未引用其他相关工作。

    原文依据 · 3
    nt system prompts and drive the agent. Runtime-confirmed; severity High. ## Details ### Affected component - Package: `praisonai` (npm / TypeScript). Files `src/praisonai-ts/src/os/config.ts` and `src/praisonai-ts/src/os/agentos.ts` (`AgentOS`). ### Vulnerable code / root cause Path: `src/praisonai-ts/src/os/config.ts` Class/const: `DEFAULT_AGENTOS_CONFIG` / `mergeConfig` Snippet: ```ts export const DEFAULT_AGENTOS_CONFIG = { host: '0.0.0.0', corsOrigins: ['*'], apiKey: '', // ... }; // mergeConfig: apiKey = userConfig?.apiKey ?? process.env.PRAISONAI_AGENTOS_API_KEY ?? ''; ``` I
    查看原文 · v1
    ss-Control-Allow-Credentials: true` with a wildcard origin. ### Attack flow 1. Developer deploys AgentOS via the quickstart without setting `apiKey`/`PRAISONAI_AGENTOS_API_KEY`. 2. Any network peer calls `GET /api/agents` → receives agent instructions/system prompts. 3. Any network peer calls `POST /api/chat` → invokes the agent. ### Why existing protection is bypassed There is no protection in the default config — the auth gate is skipped when `apiKey` is empty (the default), and the server binds all interfaces. ### Security boundary Unauthenticated network access to agent metadata + invoc
    查看原文 · v1
    redentials. ## Suggested remediation - Default `host` to `127.0.0.1`; require `apiKey` (fail closed) when binding non-loopback. - Do not default `corsOrigins` to `['*']`, especially with `Access-Control-Allow-Credentials: true`. - Do not return full `instructions` on an unauthenticated endpoint. affected_products: {"ecosystem": "npm", "name": "praisonai"} affected_versions: {"package": {"ecosystem": "npm", "name": "praisonai"}, "range": "< 1.7.3"} fixed_versions: {"package": {"ecosystem": "npm", "name": "praisonai"}, "version": "1.7.3"} cvss: {"score": 8.6, "vector": "CVSS:3.1/AV:N/AC:L/PR:N/
    查看原文 · v1

验证资料

  • 来源报告(非独立复现)称已在本地Docker运行时复现:GET /api/agents无鉴权返回200并泄露含canary的instructions,POST /api/chat无鉴权可调用;附带PraisonAI-Runtime-Repro.zip(含docker-compose.agentos.yml),声明仅含受控canary、无真实密钥。

    原文依据 · 2
    s: `PraisonAI-Runtime-Repro\runtime-files\` (`docker-compose.agentos.yml`). ### Steps to reproduce 1. `PRAI-01-01-AgentOS-Agents-NoAuth`: `GET /api/agents` (no Authorization) → `127.0.0.1:18000`. 2. `PRAI-01-02-AgentOS-Chat-NoAuth`: `POST /api/chat {"message":"hello from attacker"}` (no Authorization). ### Expected result Non-loopback exposure should require authentication; agent instructions should not be disclosed unauthenticated. ### Actual result - `GET /api/agents` → `200`, leaks `"instructions":"SYSTEM PROMPT SECRET ... PRAISONAI_INTERNAL_SECRET_CANARY_7f3a91"`; response header `Acces
    查看原文 · v1
    df8f56-b8d8-498b-87bd-44834f39998c" /> ### Reproduction assets The attached archive contains the local Docker runtime used to reproduce the issue with controlled canary values only. It does not contain real secrets, third-party API keys, or production credentials. [PraisonAI-Runtime-Repro.zip](https://github.com/user-attachments/files/29143421/PraisonAI-Runtime-Repro.zip) ## Impact Unauthenticated disclosure of agent configuration/system prompts; unauthenticated agent invocation; LLM cost abuse; possible tool abuse depending on the configured agent's tools; permissive CORS-with-credentials
    查看原文 · v1

处置建议

  • 来源建议:host默认改为127.0.0.1;绑定非回环时强制要求apiKey(fail closed);不要默认corsOrigins为['*']尤其配合Allow-Credentials;未鉴权端点不得返回完整instructions;升级至praisonai 1.7.3。

    原文依据 · 1
    redentials. ## Suggested remediation - Default `host` to `127.0.0.1`; require `apiKey` (fail closed) when binding non-loopback. - Do not default `corsOrigins` to `['*']`, especially with `Access-Control-Allow-Credentials: true`. - Do not return full `instructions` on an unauthenticated endpoint. affected_products: {"ecosystem": "npm", "name": "praisonai"} affected_versions: {"package": {"ecosystem": "npm", "name": "praisonai"}, "range": "< 1.7.3"} fixed_versions: {"package": {"ecosystem": "npm", "name": "praisonai"}, "version": "1.7.3"} cvss: {"score": 8.6, "vector": "CVSS:3.1/AV:N/AC:L/PR:N/
    查看原文 · v1
模型与引文记录
模型
mimo-v2.6-pro
生成时间
记录编号
REQ-87db8ad5831a4a369b600e4af29866a2
分析原文
查看原文 · v1
分析与审核记录

AI 情报分析

mimo-v2.6-pro · 2026-10-17 12:23 UTC

影响范围

  • 影响npm包praisonai(TypeScript)的AgentOS:默认绑定0.0.0.0且apiKey为空时跳过鉴权,任何网络对端可GET /api/agents读取系统提示词/指令,或POST /api/chat调用智能体;受影响版本<1.7.3,1.7.3修复。

    原文依据 · 3 处
    nt system prompts and drive the agent. Runtime-confirmed; severity High. ## Details ### Affected component - Package: `praisonai` (npm / TypeScript). Files `src/praisonai-ts/src/os/config.ts` and `src/praisonai-ts/src/os/agentos.ts` (`AgentOS`). ### Vulnerable code / root cause Path: `src/praisonai-ts/src/os/config.ts` Class/const: `DEFAULT_AGENTOS_CONFIG` / `mergeConfig` Snippet: ```ts export const DEFAULT_AGENTOS_CONFIG = { host: '0.0.0.0', corsOrigins: ['*'], apiKey: '', // ... }; // mergeConfig: apiKey = userConfig?.apiKey ?? process.env.PRAISONAI_AGENTOS_API_KEY ?? ''; ``` I

    查看知识库原文 · 字符 529–1129 · v1

    ss-Control-Allow-Credentials: true` with a wildcard origin. ### Attack flow 1. Developer deploys AgentOS via the quickstart without setting `apiKey`/`PRAISONAI_AGENTOS_API_KEY`. 2. Any network peer calls `GET /api/agents` → receives agent instructions/system prompts. 3. Any network peer calls `POST /api/chat` → invokes the agent. ### Why existing protection is bypassed There is no protection in the default config — the auth gate is skipped when `apiKey` is empty (the default), and the server binds all interfaces. ### Security boundary Unauthenticated network access to agent metadata + invoc

    查看知识库原文 · 字符 1972–2572 · v1

    redentials. ## Suggested remediation - Default `host` to `127.0.0.1`; require `apiKey` (fail closed) when binding non-loopback. - Do not default `corsOrigins` to `['*']`, especially with `Access-Control-Allow-Credentials: true`. - Do not return full `instructions` on an unauthenticated endpoint. affected_products: {"ecosystem": "npm", "name": "praisonai"} affected_versions: {"package": {"ecosystem": "npm", "name": "praisonai"}, "range": "< 1.7.3"} fixed_versions: {"package": {"ecosystem": "npm", "name": "praisonai"}, "version": "1.7.3"} cvss: {"score": 8.6, "vector": "CVSS:3.1/AV:N/AC:L/PR:N/

    查看知识库原文 · 字符 4937–5537 · v1

风险评估

  • 来源报告的后果包括:未授权泄露智能体配置与系统提示、未授权调用智能体、LLM费用滥用、依配置工具可能被滥用,以及通配CORS叠加Allow-Credentials带来的跨域凭据风险;来源给出CVSS 8.6(AV:N/AC:L/PR:N/...,向量被截断),未提供EPSS或利用成功率。

    原文依据 · 3 处
    ss-Control-Allow-Credentials: true` with a wildcard origin. ### Attack flow 1. Developer deploys AgentOS via the quickstart without setting `apiKey`/`PRAISONAI_AGENTOS_API_KEY`. 2. Any network peer calls `GET /api/agents` → receives agent instructions/system prompts. 3. Any network peer calls `POST /api/chat` → invokes the agent. ### Why existing protection is bypassed There is no protection in the default config — the auth gate is skipped when `apiKey` is empty (the default), and the server binds all interfaces. ### Security boundary Unauthenticated network access to agent metadata + invoc

    查看知识库原文 · 字符 1972–2572 · v1

    df8f56-b8d8-498b-87bd-44834f39998c" /> ### Reproduction assets The attached archive contains the local Docker runtime used to reproduce the issue with controlled canary values only. It does not contain real secrets, third-party API keys, or production credentials. [PraisonAI-Runtime-Repro.zip](https://github.com/user-attachments/files/29143421/PraisonAI-Runtime-Repro.zip) ## Impact Unauthenticated disclosure of agent configuration/system prompts; unauthenticated agent invocation; LLM cost abuse; possible tool abuse depending on the configured agent's tools; permissive CORS-with-credentials

    查看知识库原文 · 字符 4347–4947 · v1

    redentials. ## Suggested remediation - Default `host` to `127.0.0.1`; require `apiKey` (fail closed) when binding non-loopback. - Do not default `corsOrigins` to `['*']`, especially with `Access-Control-Allow-Credentials: true`. - Do not return full `instructions` on an unauthenticated endpoint. affected_products: {"ecosystem": "npm", "name": "praisonai"} affected_versions: {"package": {"ecosystem": "npm", "name": "praisonai"}, "range": "< 1.7.3"} fixed_versions: {"package": {"ecosystem": "npm", "name": "praisonai"}, "version": "1.7.3"} cvss: {"score": 8.6, "vector": "CVSS:3.1/AV:N/AC:L/PR:N/

    查看知识库原文 · 字符 4937–5537 · v1

相关研究

  • 根因定位在src/praisonai-ts/src/os/config.ts的DEFAULT_AGENTOS_CONFIG与mergeConfig:host默认0.0.0.0、corsOrigins默认['*']、apiKey默认空字符串并回退环境变量;涉及AgentOS(agentos.ts)。来源为GitHub安全公告(GHSA-6wjp-v33h-5cvq),未引用其他相关工作。

    原文依据 · 3 处
    nt system prompts and drive the agent. Runtime-confirmed; severity High. ## Details ### Affected component - Package: `praisonai` (npm / TypeScript). Files `src/praisonai-ts/src/os/config.ts` and `src/praisonai-ts/src/os/agentos.ts` (`AgentOS`). ### Vulnerable code / root cause Path: `src/praisonai-ts/src/os/config.ts` Class/const: `DEFAULT_AGENTOS_CONFIG` / `mergeConfig` Snippet: ```ts export const DEFAULT_AGENTOS_CONFIG = { host: '0.0.0.0', corsOrigins: ['*'], apiKey: '', // ... }; // mergeConfig: apiKey = userConfig?.apiKey ?? process.env.PRAISONAI_AGENTOS_API_KEY ?? ''; ``` I

    查看知识库原文 · 字符 529–1129 · v1

    ss-Control-Allow-Credentials: true` with a wildcard origin. ### Attack flow 1. Developer deploys AgentOS via the quickstart without setting `apiKey`/`PRAISONAI_AGENTOS_API_KEY`. 2. Any network peer calls `GET /api/agents` → receives agent instructions/system prompts. 3. Any network peer calls `POST /api/chat` → invokes the agent. ### Why existing protection is bypassed There is no protection in the default config — the auth gate is skipped when `apiKey` is empty (the default), and the server binds all interfaces. ### Security boundary Unauthenticated network access to agent metadata + invoc

    查看知识库原文 · 字符 1972–2572 · v1

    redentials. ## Suggested remediation - Default `host` to `127.0.0.1`; require `apiKey` (fail closed) when binding non-loopback. - Do not default `corsOrigins` to `['*']`, especially with `Access-Control-Allow-Credentials: true`. - Do not return full `instructions` on an unauthenticated endpoint. affected_products: {"ecosystem": "npm", "name": "praisonai"} affected_versions: {"package": {"ecosystem": "npm", "name": "praisonai"}, "range": "< 1.7.3"} fixed_versions: {"package": {"ecosystem": "npm", "name": "praisonai"}, "version": "1.7.3"} cvss: {"score": 8.6, "vector": "CVSS:3.1/AV:N/AC:L/PR:N/

    查看知识库原文 · 字符 4937–5537 · v1

验证资料

  • 来源报告(非独立复现)称已在本地Docker运行时复现:GET /api/agents无鉴权返回200并泄露含canary的instructions,POST /api/chat无鉴权可调用;附带PraisonAI-Runtime-Repro.zip(含docker-compose.agentos.yml),声明仅含受控canary、无真实密钥。

    原文依据 · 2 处
    s: `PraisonAI-Runtime-Repro\runtime-files\` (`docker-compose.agentos.yml`). ### Steps to reproduce 1. `PRAI-01-01-AgentOS-Agents-NoAuth`: `GET /api/agents` (no Authorization) → `127.0.0.1:18000`. 2. `PRAI-01-02-AgentOS-Chat-NoAuth`: `POST /api/chat {"message":"hello from attacker"}` (no Authorization). ### Expected result Non-loopback exposure should require authentication; agent instructions should not be disclosed unauthenticated. ### Actual result - `GET /api/agents` → `200`, leaks `"instructions":"SYSTEM PROMPT SECRET ... PRAISONAI_INTERNAL_SECRET_CANARY_7f3a91"`; response header `Acces

    查看知识库原文 · 字符 2877–3477 · v1

    df8f56-b8d8-498b-87bd-44834f39998c" /> ### Reproduction assets The attached archive contains the local Docker runtime used to reproduce the issue with controlled canary values only. It does not contain real secrets, third-party API keys, or production credentials. [PraisonAI-Runtime-Repro.zip](https://github.com/user-attachments/files/29143421/PraisonAI-Runtime-Repro.zip) ## Impact Unauthenticated disclosure of agent configuration/system prompts; unauthenticated agent invocation; LLM cost abuse; possible tool abuse depending on the configured agent's tools; permissive CORS-with-credentials

    查看知识库原文 · 字符 4347–4947 · v1

适用对象

  • 来源提及的产品/部署条件:npm生态的praisonai包(<1.7.3受影响,1.7.3修复),通过quickstart部署的AgentOS、未设置apiKey/PRAISONAI_AGENTOS_API_KEY、绑定非回环地址;

    原文依据 · 3 处
    nt system prompts and drive the agent. Runtime-confirmed; severity High. ## Details ### Affected component - Package: `praisonai` (npm / TypeScript). Files `src/praisonai-ts/src/os/config.ts` and `src/praisonai-ts/src/os/agentos.ts` (`AgentOS`). ### Vulnerable code / root cause Path: `src/praisonai-ts/src/os/config.ts` Class/const: `DEFAULT_AGENTOS_CONFIG` / `mergeConfig` Snippet: ```ts export const DEFAULT_AGENTOS_CONFIG = { host: '0.0.0.0', corsOrigins: ['*'], apiKey: '', // ... }; // mergeConfig: apiKey = userConfig?.apiKey ?? process.env.PRAISONAI_AGENTOS_API_KEY ?? ''; ``` I

    查看知识库原文 · 字符 529–1129 · v1

    ss-Control-Allow-Credentials: true` with a wildcard origin. ### Attack flow 1. Developer deploys AgentOS via the quickstart without setting `apiKey`/`PRAISONAI_AGENTOS_API_KEY`. 2. Any network peer calls `GET /api/agents` → receives agent instructions/system prompts. 3. Any network peer calls `POST /api/chat` → invokes the agent. ### Why existing protection is bypassed There is no protection in the default config — the auth gate is skipped when `apiKey` is empty (the default), and the server binds all interfaces. ### Security boundary Unauthenticated network access to agent metadata + invoc

    查看知识库原文 · 字符 1972–2572 · v1

    redentials. ## Suggested remediation - Default `host` to `127.0.0.1`; require `apiKey` (fail closed) when binding non-loopback. - Do not default `corsOrigins` to `['*']`, especially with `Access-Control-Allow-Credentials: true`. - Do not return full `instructions` on an unauthenticated endpoint. affected_products: {"ecosystem": "npm", "name": "praisonai"} affected_versions: {"package": {"ecosystem": "npm", "name": "praisonai"}, "range": "< 1.7.3"} fixed_versions: {"package": {"ecosystem": "npm", "name": "praisonai"}, "version": "1.7.3"} cvss: {"score": 8.6, "vector": "CVSS:3.1/AV:N/AC:L/PR:N/

    查看知识库原文 · 字符 4937–5537 · v1

处置建议

  • 来源建议:host默认改为127.0.0.1;绑定非回环时强制要求apiKey(fail closed);不要默认corsOrigins为['*']尤其配合Allow-Credentials;未鉴权端点不得返回完整instructions;升级至praisonai 1.7.3。

    原文依据 · 1 处
    redentials. ## Suggested remediation - Default `host` to `127.0.0.1`; require `apiKey` (fail closed) when binding non-loopback. - Do not default `corsOrigins` to `['*']`, especially with `Access-Control-Allow-Credentials: true`. - Do not return full `instructions` on an unauthenticated endpoint. affected_products: {"ecosystem": "npm", "name": "praisonai"} affected_versions: {"package": {"ecosystem": "npm", "name": "praisonai"}, "range": "< 1.7.3"} fixed_versions: {"package": {"ecosystem": "npm", "name": "praisonai"}, "version": "1.7.3"} cvss: {"score": 8.6, "vector": "CVSS:3.1/AV:N/AC:L/PR:N/

    查看知识库原文 · 字符 4937–5537 · v1

查看分析记录

更新情报分析

由大模型梳理影响范围、风险、研究方法、验证资料、适用对象和处置建议。

请先在富化流程中配置并授权后台模型分析。

模型分析设置

情报标识:GHSA-6wjp-v33h-5cvq · CVE-2026-61426

来源字段与 CVSS 指标

受影响产品

praisonai · npm

查看来源依据

结构化证据路径 $[24].vulnerabilities[0].package

{"ecosystem": "npm", "name": "praisonai"}

受影响版本

praisonai · < 1.7.3(低于 1.7.3)

查看来源依据

结构化证据路径 $[24].vulnerabilities[0].vulnerable_version_range

"< 1.7.3"
字段所属产品与版本上下文
[
  {
    "format": "github_advisory",
    "json_path": "$[24].vulnerabilities[0]",
    "quote": "{\"first_patched_version\": \"1.7.3\", \"package\": {\"ecosystem\": \"npm\", \"name\": \"praisonai\"}, \"vulnerable_functions\": [], \"vulnerable_version_range\": \"\u003c 1.7.3\"}",
    "record_path": "$.vulnerabilities[0]"
  }
]

来源列出的修复版本

praisonai · 1.7.3

查看来源依据

结构化证据路径 $[24].vulnerabilities[0].first_patched_version

"1.7.3"
字段所属产品与版本上下文
[
  {
    "format": "github_advisory",
    "json_path": "$[24].vulnerabilities[0]",
    "quote": "{\"first_patched_version\": \"1.7.3\", \"package\": {\"ecosystem\": \"npm\", \"name\": \"praisonai\"}, \"vulnerable_functions\": [], \"vulnerable_version_range\": \"\u003c 1.7.3\"}",
    "record_path": "$.vulnerabilities[0]"
  }
]

来源风险评分

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

攻击途径
网络 (AV:N)
攻击复杂度
低 (AC:L)
所需权限
无需权限 (PR:N)
用户交互
不需要 (UI:N)
安全权限范围
未改变 (S:U)
机密性影响
高 (C:H)
完整性影响
低 (I:L)
可用性影响
低 (A:L)

CVSS 3.1 指标说明

查看来源依据 · 2 处相同值

结构化证据路径 $[24].cvss

{"score": 8.6, "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L"}

结构化证据路径 $[24].cvss_severities.cvss_v3

{"score": 8.6, "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L"}

0.0 / 10 · CVSS v4(来源字段)

查看来源依据

结构化证据路径 $[24].cvss_severities.cvss_v4

{"score": 0.0, "vector_string": null}

资料档案

文献来源与参考链接

当前保存的来源版本 · v1

结构化格式
github_advisory
原始标题与分类记录

PraisonAI: AgentOS defaults to network-exposed no-auth mode, allowing unauthenticated agent invocation and instruction disclosure

研究方向
攻击方法
影响维度
机密性
风险类型
待人工确认
相关技术
LLM、Agent

当前为离线关键词规则模式。

分类规则与原始字段
攻击方法 · attack
-Allow-Credentials: true` with a wildcard origin. ### Attack flow 1. Developer deploys AgentOS via the quickstart without setting `apiKey`/`PRAISONAI_AGENTOS_AP
机密性 · secret
/agents` → `200`, leaks `"instructions":"SYSTEM PROMPT SECRET ... PRAISONAI_INTERNAL_SECRET_CANARY_7f3a91"`; response header `Access-Control-Allow-Credentials: t
LLM · llm
n a node container with default config (stub agent, no LLM needed). `127.0.0.1:18000`. Runnable assets: `PraisonAI-Runtime-Repro\runtime-files\` (`docker-comp
Agent · agent
network-exposed no-auth mode, allowing unauthenticated agent invocation and instruction disclosure GHSA-6wjp-v33h-5cvq ## Summary The AgentOS server in the `pr
{
  "ai_relevance": {
    "evidence": [
      {
        "end_offset": 2964,
        "location": "title_and_content",
        "quote": "LLM",
        "rule": "ai_term",
        "start_offset": 2961
      },
      {
        "end_offset": 4969,
        "location": "title_and_content",
        "quote": "LLM",
        "rule": "ai_term",
        "start_offset": 4966
      }
    ],
    "matches": [
      {
        "end_offset": 2964,
        "location": "title_and_content",
        "quote": "LLM",
        "rule": "ai_term",
        "start_offset": 2961
      },
      {
        "end_offset": 4969,
        "location": "title_and_content",
        "quote": "LLM",
        "rule": "ai_term",
        "start_offset": 4966
      }
    ],
    "method": "explainable_keyword_rules",
    "reason": "Matched AI topic or component evidence",
    "relevant": true
  },
  "entity_ids": [
    "GHSA-6wjp-v33h-5cvq",
    "CVE-2026-61426"
  ],
  "facts": [
    {
      "evidence": {
        "format": "github_advisory",
        "json_path": "$[24].vulnerabilities[0].package",
        "quote": "{\"ecosystem\": \"npm\", \"name\": \"praisonai\"}",
        "record_path": "$.vulnerabilities[0].package"
      },
      "field": "affected_products",
      "value": {
        "ecosystem": "npm",
        "name": "praisonai"
      }
    },
    {
      "evidence": {
        "context": [
          {
            "format": "github_advisory",
            "json_path": "$[24].vulnerabilities[0]",
            "quote": "{\"first_patched_version\": \"1.7.3\", \"package\": {\"ecosystem\": \"npm\", \"name\": \"praisonai\"}, \"vulnerable_functions\": [], \"vulnerable_version_range\": \"\u003c 1.7.3\"}",
            "record_path": "$.vulnerabilities[0]"
          }
        ],
        "format": "github_advisory",
        "json_path": "$[24].vulnerabilities[0].vulnerable_version_range",
        "quote": "\"\u003c 1.7.3\"",
        "record_path": "$.vulnerabilities[0].vulnerable_version_range"
      },
      "field": "affected_versions",
      "value": {
        "package": {
          "ecosystem": "npm",
          "name": "praisonai"
        },
        "range": "\u003c 1.7.3"
      }
    },
    {
      "evidence": {
        "context": [
          {
            "format": "github_advisory",
            "json_path": "$[24].vulnerabilities[0]",
            "quote": "{\"first_patched_version\": \"1.7.3\", \"package\": {\"ecosystem\": \"npm\", \"name\": \"praisonai\"}, \"vulnerable_functions\": [], \"vulnerable_version_range\": \"\u003c 1.7.3\"}",
            "record_path": "$.vulnerabilities[0]"
          }
        ],
        "format": "github_advisory",
        "json_path": "$[24].vulnerabilities[0].first_patched_version",
        "quote": "\"1.7.3\"",
        "record_path": "$.vulnerabilities[0].first_patched_version"
      },
      "field": "fixed_versions",
      "value": {
        "package": {
          "ecosystem": "npm",
          "name": "praisonai"
        },
        "version": "1.7.3"
      }
    },
    {
      "evidence": {
        "format": "github_advisory",
        "json_path": "$[24].cvss",
        "quote": "{\"score\": 8.6, \"vector_string\": \"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L\"}",
        "record_path": "$.cvss"
      },
      "field": "cvss",
      "value": {
        "score": 8.6,
        "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L"
      }
    },
    {
      "evidence": {
        "format": "github_advisory",
        "json_path": "$[24].cvss_severities.cvss_v3",
        "quote": "{\"score\": 8.6, \"vector_string\": \"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L\"}",
        "record_path": "$.cvss_severities.cvss_v3"
      },
      "field": "cvss",
      "value": {
        "score": 8.6,
        "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L"
      }
    },
    {
      "evidence": {
        "format": "github_advisory",
        "json_path": "$[24].cvss_severities.cvss_v4",
        "quote": "{\"score\": 0.0, \"vector_string\": null}",
        "record_path": "$.cvss_severities.cvss_v4"
      },
      "field": "cvss",
      "value": {
        "score": 0.0,
        "vector": null
      }
    },
    {
      "evidence": {
        "format": "github_advisory",
        "json_path": "$[24].references[0]",
        "quote": "\"https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-6wjp-v33h-5cvq\"",
        "record_path": "$.references[0]"
      },
      "field": "references",
      "value": {
        "types": [
          "WEB"
        ],
        "url": "https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-6wjp-v33h-5cvq"
      }
    },
    {
      "evidence": {
        "format": "github_advisory",
        "json_path": "$[24].references[1]",
        "quote": "\"https://nvd.nist.gov/vuln/detail/CVE-2026-61426\"",
        "record_path": "$.references[1]"
      },
      "field": "references",
      "value": {
        "types": [
          "WEB"
        ],
        "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-61426"
      }
    },
    {
      "evidence": {
        "format": "github_advisory",
        "json_path": "$[24].references[2]",
        "quote": "\"https://www.vulncheck.com/advisories/praisonai-before-unauthenticated-agent-access-via-insecure-defaults\"",
        "record_path": "$.references[2]"
      },
      "field": "references",
      "value": {
        "types": [
          "WEB"
        ],
        "url": "https://www.vulncheck.com/advisories/praisonai-before-unauthenticated-agent-access-via-insecure-defaults"
      }
    },
    {
      "evidence": {
        "format": "github_advisory",
        "json_path": "$[24].references[3]",
        "quote": "\"https://github.com/advisories/GHSA-6wjp-v33h-5cvq\"",
        "record_path": "$.references[3]"
      },
      "field": "references",
      "value": {
        "types": [
          "WEB"
        ],
        "url": "https://github.com/advisories/GHSA-6wjp-v33h-5cvq"
      }
    }
  ],
  "method": "source_grounded_extraction",
  "unknown_fields": [
    "mitigations",
    "papers",
    "poc"
  ]
}
原始采集文本
GHSA-6wjp-v33h-5cvq
## Summary

The AgentOS server in the `praisonai` TypeScript/npm package ships an insecure default: it binds `0.0.0.0`, sets no API key, and uses CORS `*` with credentials. The API-key middleware is only registered when an API key is configured, so the documented quickstart (`new AgentOS({agents:[...]}).serve({port})`) exposes, **unauthenticated**, `GET /api/agents` (which leaks agent names/roles/instructions, i.e. system prompts) and `POST /api/chat` (which invokes agents). Any network peer can read agent system prompts and drive the agent. Runtime-confirmed; severity High.

## Details

### Affected component
- Package: `praisonai` (npm / TypeScript). Files `src/praisonai-ts/src/os/config.ts` and `src/praisonai-ts/src/os/agentos.ts` (`AgentOS`).

### Vulnerable code / root cause

Path:
`src/praisonai-ts/src/os/config.ts`

Class/const:
`DEFAULT_AGENTOS_CONFIG` / `mergeConfig`

Snippet:
```ts
export const DEFAULT_AGENTOS_CONFIG = {
  host: '0.0.0.0',
  corsOrigins: ['*'],
  apiKey: '',
  // ...
};
// mergeConfig: apiKey = userConfig?.apiKey ?? process.env.PRAISONAI_AGENTOS_API_KEY ?? '';
```
Issue: defaults bind all interfaces, with an empty API key and wildcard CORS. `apiKey` stays empty unless the developer explicitly sets it.

Path:
`src/praisonai-ts/src/os/agentos.ts`

Function:
`serve` / `_registerRoutes` (Express app)

Snippet:
```ts
if (this.config.apiKey) {              // auth middleware ONLY added when apiKey is set
  app.use((req,res,next) => { /* 401 unless Bearer/x-auth-token matches */ });
}
// routes:
app.get(`${apiPrefix}/agents`, ...)    // returns name/role/instructions
app.post(`${apiPrefix}/chat`,  ...)    // calls agent.chat(message)
```
Issue: the only auth gate is conditional on a non-empty `apiKey`. With the default empty key, no auth middleware is registered, and `GET /api/agents` (system-prompt disclosure) and `POST /api/chat` (agent invocation) are served to any network client. CORS sets `Access-Control-Allow-Credentials: true` with a wildcard origin.

### Attack flow
1. Developer deploys AgentOS via the quickstart without setting `apiKey`/`PRAISONAI_AGENTOS_API_KEY`.
2. Any network peer calls `GET /api/agents` → receives agent instructions/system prompts.
3. Any network peer calls `POST /api/chat` → invokes the agent.

### Why existing protection is bypassed
There is no protection in the default config — the auth gate is skipped when `apiKey` is empty (the default), and the server binds all interfaces.

### Security boundary
Unauthenticated network access to agent metadata + invocation. This is the CVE-2026-44338 anti-pattern recurring in the TS package, and worse (0.0.0.0 is the default).

## Proof of Concept

### Environment
Real AgentOS from `src/praisonai-ts` run via ts-node in a node container with default config (stub agent, no LLM needed). `127.0.0.1:18000`. Runnable assets: `PraisonAI-Runtime-Repro\runtime-files\` (`docker-compose.agentos.yml`).

### Steps to reproduce
1. `PRAI-01-01-AgentOS-Agents-NoAuth`: `GET /api/agents` (no Authorization) → `127.0.0.1:18000`.
2. `PRAI-01-02-AgentOS-Chat-NoAuth`: `POST /api/chat {"message":"hello from attacker"}` (no Authorization).

### Expected result
Non-loopback exposure should require authentication; agent instructions should not be disclosed unauthenticated.

### Actual result
- `GET /api/agents` → `200`, leaks `"instructions":"SYSTEM PROMPT SECRET ... PRAISONAI_INTERNAL_SECRET_CANARY_7f3a91"`; response header `Access-Control-Allow-Credentials: true`.
- `POST /api/chat` → `200`, agent invoked (`"response":"...PRAISONAI_AGENTOS_CANARY_7f3a91..."`).

### Screenshots

**Unauthenticated `/api/agents` leaks agent instructions**

A GET request to `/api/agents` succeeds without an `Authorization` header. The response exposes agent metadata and instructions, including the canary system-prompt value.

<img width="1535" height="829" alt="01-AgentOS-Agents-NoAuth" src="https://github.com/user-attachments/assets/705087e1-8017-46f6-9a91-edb8312e2f26" />

**Unauthenticated `/api/chat` invokes the agent**

A POST request to `/api/chat` succeeds without an `Authorization` header. The response confirms that the attacker-controlled message was processed by the configured agent.

<img width="1537" height="833" alt="02-AgentOS-Chat-NoAuth" src="https://github.com/user-attachments/assets/5cdf8f56-b8d8-498b-87bd-44834f39998c" />

### Reproduction assets

The attached archive contains the local Docker runtime used to reproduce the issue with controlled canary values only. It does not contain real secrets, third-party API keys, or production credentials.

[PraisonAI-Runtime-Repro.zip](https://github.com/user-attachments/files/29143421/PraisonAI-Runtime-Repro.zip)

## Impact
Unauthenticated disclosure of agent configuration/system prompts; unauthenticated agent invocation; LLM cost abuse; possible tool abuse depending on the configured agent's tools; permissive CORS-with-credentials.

## Suggested remediation
- Default `host` to `127.0.0.1`; require `apiKey` (fail closed) when binding non-loopback.
- Do not default `corsOrigins` to `['*']`, especially with `Access-Control-Allow-Credentials: true`.
- Do not return full `instructions` on an unauthenticated endpoint.
affected_products: {"ecosystem": "npm", "name": "praisonai"}
affected_versions: {"package": {"ecosystem": "npm", "name": "praisonai"}, "range": "< 1.7.3"}
fixed_versions: {"package": {"ecosystem": "npm", "name": "praisonai"}, "version": "1.7.3"}
cvss: {"score": 8.6, "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L"}
cvss: {"score": 8.6, "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L"}
cvss: {"score": 0.0, "vector": null}
references: {"types": ["WEB"], "url": "https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-6wjp-v33h-5cvq"}
references: {"types": ["WEB"], "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-61426"}
references: {"types": ["WEB"], "url": "https://www.vulncheck.com/advisories/praisonai-before-unauthenticated-agent-access-via-insecure-defaults"}
references: {"types": ["WEB"], "url": "https://github.com/advisories/GHSA-6wjp-v33h-5cvq"}
采集信息与校验
完整来源元数据
{
  "format": "github_advisory",
  "raw_record": {
    "comments": 1,
    "credits": [
      {
        "type": "reporter",
        "user": {
          "avatar_url": "https://avatars.githubusercontent.com/u/149681061?v=4",
          "events_url": "https://api.github.com/users/dinhvaren/events{/privacy}",
          "followers_url": "https://api.github.com/users/dinhvaren/followers",
          "following_url": "https://api.github.com/users/dinhvaren/following{/other_user}",
          "gists_url": "https://api.github.com/users/dinhvaren/gists{/gist_id}",
          "gravatar_id": "",
          "html_url": "https://github.com/dinhvaren",
          "id": 149681061,
          "login": "dinhvaren",
          "node_id": "U_kgDOCOvzpQ",
          "organizations_url": "https://api.github.com/users/dinhvaren/orgs",
          "received_events_url": "https://api.github.com/users/dinhvaren/received_events",
          "repos_url": "https://api.github.com/users/dinhvaren/repos",
          "site_admin": false,
          "starred_url": "https://api.github.com/users/dinhvaren/starred{/owner}{/repo}",
          "subscriptions_url": "https://api.github.com/users/dinhvaren/subscriptions",
          "type": "User",
          "url": "https://api.github.com/users/dinhvaren",
          "user_view_type": "public"
        }
      }
    ],
    "cve_id": "CVE-2026-61426",
    "cvss": {
      "score": 8.6,
      "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L"
    },
    "cvss_severities": {
      "cvss_v3": {
        "score": 8.6,
        "vector_string": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L"
      },
      "cvss_v4": {
        "score": 0.0,
        "vector_string": null
      }
    },
    "cwes": [
      {
        "cwe_id": "CWE-200",
        "name": "Exposure of Sensitive Information to an Unauthorized Actor"
      },
      {
        "cwe_id": "CWE-284",
        "name": "Improper Access Control"
      },
      {
        "cwe_id": "CWE-306",
        "name": "Missing Authentication for Critical Function"
      }
    ],
    "description": "## Summary\n\nThe AgentOS server in the `praisonai` TypeScript/npm package ships an insecure default: it binds `0.0.0.0`, sets no API key, and uses CORS `*` with credentials. The API-key middleware is only registered when an API key is configured, so the documented quickstart (`new AgentOS({agents:[...]}).serve({port})`) exposes, **unauthenticated**, `GET /api/agents` (which leaks agent names/roles/instructions, i.e. system prompts) and `POST /api/chat` (which invokes agents). Any network peer can read agent system prompts and drive the agent. Runtime-confirmed; severity High.\n\n## Details\n\n### Affected component\n- Package: `praisonai` (npm / TypeScript). Files `src/praisonai-ts/src/os/config.ts` and `src/praisonai-ts/src/os/agentos.ts` (`AgentOS`).\n\n### Vulnerable code / root cause\n\nPath:\n`src/praisonai-ts/src/os/config.ts`\n\nClass/const:\n`DEFAULT_AGENTOS_CONFIG` / `mergeConfig`\n\nSnippet:\n```ts\nexport const DEFAULT_AGENTOS_CONFIG = {\n  host: \u00270.0.0.0\u0027,\n  corsOrigins: [\u0027*\u0027],\n  apiKey: \u0027\u0027,\n  // ...\n};\n// mergeConfig: apiKey = userConfig?.apiKey ?? process.env.PRAISONAI_AGENTOS_API_KEY ?? \u0027\u0027;\n```\nIssue: defaults bind all interfaces, with an empty API key and wildcard CORS. `apiKey` stays empty unless the developer explicitly sets it.\n\nPath:\n`src/praisonai-ts/src/os/agentos.ts`\n\nFunction:\n`serve` / `_registerRoutes` (Express app)\n\nSnippet:\n```ts\nif (this.config.apiKey) {              // auth middleware ONLY added when apiKey is set\n  app.use((req,res,next) =\u003e { /* 401 unless Bearer/x-auth-token matches */ });\n}\n// routes:\napp.get(`${apiPrefix}/agents`, ...)    // returns name/role/instructions\napp.post(`${apiPrefix}/chat`,  ...)    // calls agent.chat(message)\n```\nIssue: the only auth gate is conditional on a non-empty `apiKey`. With the default empty key, no auth middleware is registered, and `GET /api/agents` (system-prompt disclosure) and `POST /api/chat` (agent invocation) are served to any network client. CORS sets `Access-Control-Allow-Credentials: true` with a wildcard origin.\n\n### Attack flow\n1. Developer deploys AgentOS via the quickstart without setting `apiKey`/`PRAISONAI_AGENTOS_API_KEY`.\n2. Any network peer calls `GET /api/agents` \u2192 receives agent instructions/system prompts.\n3. Any network peer calls `POST /api/chat` \u2192 invokes the agent.\n\n### Why existing protection is bypassed\nThere is no protection in the default config \u2014 the auth gate is skipped when `apiKey` is empty (the default), and the server binds all interfaces.\n\n### Security boundary\nUnauthenticated network access to agent metadata + invocation. This is the CVE-2026-44338 anti-pattern recurring in the TS package, and worse (0.0.0.0 is the default).\n\n## Proof of Concept\n\n### Environment\nReal AgentOS from `src/praisonai-ts` run via ts-node in a node container with default config (stub agent, no LLM needed). `127.0.0.1:18000`. Runnable assets: `PraisonAI-Runtime-Repro\\runtime-files\\` (`docker-compose.agentos.yml`).\n\n### Steps to reproduce\n1. `PRAI-01-01-AgentOS-Agents-NoAuth`: `GET /api/agents` (no Authorization) \u2192 `127.0.0.1:18000`.\n2. `PRAI-01-02-AgentOS-Chat-NoAuth`: `POST /api/chat {\"message\":\"hello from attacker\"}` (no Authorization).\n\n### Expected result\nNon-loopback exposure should require authentication; agent instructions should not be disclosed unauthenticated.\n\n### Actual result\n- `GET /api/agents` \u2192 `200`, leaks `\"instructions\":\"SYSTEM PROMPT SECRET ... PRAISONAI_INTERNAL_SECRET_CANARY_7f3a91\"`; response header `Access-Control-Allow-Credentials: true`.\n- `POST /api/chat` \u2192 `200`, agent invoked (`\"response\":\"...PRAISONAI_AGENTOS_CANARY_7f3a91...\"`).\n\n### Screenshots\n\n**Unauthenticated `/api/agents` leaks agent instructions**\n\nA GET request to `/api/agents` succeeds without an `Authorization` header. The response exposes agent metadata and instructions, including the canary system-prompt value.\n\n\u003cimg width=\"1535\" height=\"829\" alt=\"01-AgentOS-Agents-NoAuth\" src=\"https://github.com/user-attachments/assets/705087e1-8017-46f6-9a91-edb8312e2f26\" /\u003e\n\n**Unauthenticated `/api/chat` invokes the agent**\n\nA POST request to `/api/chat` succeeds without an `Authorization` header. The response confirms that the attacker-controlled message was processed by the configured agent.\n\n\u003cimg width=\"1537\" height=\"833\" alt=\"02-AgentOS-Chat-NoAuth\" src=\"https://github.com/user-attachments/assets/5cdf8f56-b8d8-498b-87bd-44834f39998c\" /\u003e\n\n### Reproduction assets\n\nThe attached archive contains the local Docker runtime used to reproduce the issue with controlled canary values only. It does not contain real secrets, third-party API keys, or production credentials.\n\n[PraisonAI-Runtime-Repro.zip](https://github.com/user-attachments/files/29143421/PraisonAI-Runtime-Repro.zip)\n\n## Impact\nUnauthenticated disclosure of agent configuration/system prompts; unauthenticated agent invocation; LLM cost abuse; possible tool abuse depending on the configured agent\u0027s tools; permissive CORS-with-credentials.\n\n## Suggested remediation\n- Default `host` to `127.0.0.1`; require `apiKey` (fail closed) when binding non-loopback.\n- Do not default `corsOrigins` to `[\u0027*\u0027]`, especially with `Access-Control-Allow-Credentials: true`.\n- Do not return full `instructions` on an unauthenticated endpoint.",
    "epss": {
      "percentage": 0.00478,
      "percentile": 0.39527
    },
    "ghsa_id": "GHSA-6wjp-v33h-5cvq",
    "github_reviewed_at": "2026-10-08T22:01:29Z",
    "html_url": "https://github.com/advisories/GHSA-6wjp-v33h-5cvq",
    "identifiers": [
      {
        "type": "GHSA",
        "value": "GHSA-6wjp-v33h-5cvq"
      },
      {
        "type": "CVE",
        "value": "CVE-2026-61426"
      }
    ],
    "nvd_published_at": null,
    "published_at": "2026-10-08T22:01:29Z",
    "references": [
      "https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-6wjp-v33h-5cvq",
      "https://nvd.nist.gov/vuln/detail/CVE-2026-61426",
      "https://www.vulncheck.com/advisories/praisonai-before-unauthenticated-agent-access-via-insecure-defaults",
      "https://github.com/advisories/GHSA-6wjp-v33h-5cvq"
    ],
    "repository_advisory_url": "https://api.github.com/repos/MervinPraison/PraisonAI/security-advisories/GHSA-6wjp-v33h-5cvq",
    "severity": "high",
    "source_code_location": "https://github.com/MervinPraison/PraisonAI",
    "summary": "PraisonAI: AgentOS defaults to network-exposed no-auth mode, allowing unauthenticated agent invocation and instruction disclosure",
    "type": "reviewed",
    "updated_at": "2026-10-08T22:01:31Z",
    "url": "https://api.github.com/advisories/GHSA-6wjp-v33h-5cvq",
    "vulnerabilities": [
      {
        "first_patched_version": "1.7.3",
        "package": {
          "ecosystem": "npm",
          "name": "praisonai"
        },
        "vulnerable_functions": [],
        "vulnerable_version_range": "\u003c 1.7.3"
      }
    ],
    "withdrawn_at": null
  },
  "record_path": "$[24]"
}
原文版本历史与校验
版本入库更新时间来源发布日期校验标识
v1 · 正在查看2026-10-17 12:06 UTC2026-10-08 22:01 UTC2a1738842b98585fdac9965a5b234af346761881494531bc1bce21ab868181fe
可引用分片 · 5 段

CHK-6b8742a315e40a81bf5a5301

GHSA-6wjp-v33h-5cvq
## Summary

The AgentOS server in the `praisonai` TypeScript/npm package ships an insecure default: it binds `0.0.0.0`, sets no API key, and uses CORS `*` with credentials. The API-key middleware is only registered when an API key is configured, so the documented quickstart (`new AgentOS({agents:[...]}).serve({port})`) exposes, **unauthenticated**, `GET /api/agents` (which leaks agent names/roles/instructions, i.e. system prompts) and `POST /api/chat` (which invokes agents). Any network peer can read agent system prompts and drive the agent. Runtime-confirmed; severity High.

## Details

### Affected component
- Package: `praisonai` (npm / TypeScript). Files `src/praisonai-ts/src/os/config.ts` and `src/praisonai-ts/src/os/agentos.ts` (`AgentOS`).

### Vulnerable code / root cause

Path:
`src/praisonai-ts/src/os/config.ts`

Class/const:
`DEFAULT_AGENTOS_CONFIG` / `mergeConfig`

Snippet:
```ts
export const DEFAULT_AGENTOS_CONFIG = {
  host: '0.0.0.0',
  corsOrigins: ['*'],
  apiKey: '',
  // ...
};
// mergeConfig: apiKey = userConfig?.apiKey ?? process.env.PRAISONAI_AGENTOS_API_KEY ?? '';
```
Issue: defaults bind all interfaces, with an empty API key and wildcard CORS. `apiKey` stays empty unless the developer explicitly sets it.

Path:
`src/praisonai-ts/src/os/agentos.ts`

Function:
`serve` / `_registerRoutes` (Express app)

Snippet:
```ts

CHK-fb6095c42153940935929b0a

empty unless the developer explicitly sets it.

Path:
`src/praisonai-ts/src/os/agentos.ts`

Function:
`serve` / `_registerRoutes` (Express app)

Snippet:
```ts
if (this.config.apiKey) {              // auth middleware ONLY added when apiKey is set
  app.use((req,res,next) => { /* 401 unless Bearer/x-auth-token matches */ });
}
// routes:
app.get(`${apiPrefix}/agents`, ...)    // returns name/role/instructions
app.post(`${apiPrefix}/chat`,  ...)    // calls agent.chat(message)
```
Issue: the only auth gate is conditional on a non-empty `apiKey`. With the default empty key, no auth middleware is registered, and `GET /api/agents` (system-prompt disclosure) and `POST /api/chat` (agent invocation) are served to any network client. CORS sets `Access-Control-Allow-Credentials: true` with a wildcard origin.

### Attack flow
1. Developer deploys AgentOS via the quickstart without setting `apiKey`/`PRAISONAI_AGENTOS_API_KEY`.
2. Any network peer calls `GET /api/agents` → receives agent instructions/system prompts.
3. Any network peer calls `POST /api/chat` → invokes the agent.

### Why existing protection is bypassed
There is no protection in the default config — the auth gate is skipped when `apiKey` is empty (the default), and the server binds all interfaces.

### Security boundary
Unauthenticated network access to agent metadata + invocation.

CHK-33aa7ca16cf2c2d80057aa1a

when `apiKey` is empty (the default), and the server binds all interfaces.

### Security boundary
Unauthenticated network access to agent metadata + invocation. This is the CVE-2026-44338 anti-pattern recurring in the TS package, and worse (0.0.0.0 is the default).

## Proof of Concept

### Environment
Real AgentOS from `src/praisonai-ts` run via ts-node in a node container with default config (stub agent, no LLM needed). `127.0.0.1:18000`. Runnable assets: `PraisonAI-Runtime-Repro\runtime-files\` (`docker-compose.agentos.yml`).

### Steps to reproduce
1. `PRAI-01-01-AgentOS-Agents-NoAuth`: `GET /api/agents` (no Authorization) → `127.0.0.1:18000`.
2. `PRAI-01-02-AgentOS-Chat-NoAuth`: `POST /api/chat {"message":"hello from attacker"}` (no Authorization).

### Expected result
Non-loopback exposure should require authentication; agent instructions should not be disclosed unauthenticated.

### Actual result
- `GET /api/agents` → `200`, leaks `"instructions":"SYSTEM PROMPT SECRET ... PRAISONAI_INTERNAL_SECRET_CANARY_7f3a91"`; response header `Access-Control-Allow-Credentials: true`.
- `POST /api/chat` → `200`, agent invoked (`"response":"...PRAISONAI_AGENTOS_CANARY_7f3a91..."`).

### Screenshots

**Unauthenticated `/api/agents` leaks agent instructions**

A GET request to `/api/agents` succeeds without an `Authorization` header.

CHK-f72aefa0e72a7a1989cdf639

..."`).

### Screenshots

**Unauthenticated `/api/agents` leaks agent instructions**

A GET request to `/api/agents` succeeds without an `Authorization` header. The response exposes agent metadata and instructions, including the canary system-prompt value.

<img width="1535" height="829" alt="01-AgentOS-Agents-NoAuth" src="https://github.com/user-attachments/assets/705087e1-8017-46f6-9a91-edb8312e2f26" />

**Unauthenticated `/api/chat` invokes the agent**

A POST request to `/api/chat` succeeds without an `Authorization` header. The response confirms that the attacker-controlled message was processed by the configured agent.

<img width="1537" height="833" alt="02-AgentOS-Chat-NoAuth" src="https://github.com/user-attachments/assets/5cdf8f56-b8d8-498b-87bd-44834f39998c" />

### Reproduction assets

The attached archive contains the local Docker runtime used to reproduce the issue with controlled canary values only. It does not contain real secrets, third-party API keys, or production credentials.

[PraisonAI-Runtime-Repro.zip](https://github.com/user-attachments/files/29143421/PraisonAI-Runtime-Repro.zip)

## Impact
Unauthenticated disclosure of agent configuration/system prompts; unauthenticated agent invocation; LLM cost abuse; possible tool abuse depending on the configured agent's tools; permissive CORS-with-credentials.

## Suggested remediation

CHK-80ef62f12ac89d04423f6a08

ed agent invocation; LLM cost abuse; possible tool abuse depending on the configured agent's tools; permissive CORS-with-credentials.

## Suggested remediation
- Default `host` to `127.0.0.1`; require `apiKey` (fail closed) when binding non-loopback.
- Do not default `corsOrigins` to `['*']`, especially with `Access-Control-Allow-Credentials: true`.
- Do not return full `instructions` on an unauthenticated endpoint.
affected_products: {"ecosystem": "npm", "name": "praisonai"}
affected_versions: {"package": {"ecosystem": "npm", "name": "praisonai"}, "range": "< 1.7.3"}
fixed_versions: {"package": {"ecosystem": "npm", "name": "praisonai"}, "version": "1.7.3"}
cvss: {"score": 8.6, "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L"}
cvss: {"score": 8.6, "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L"}
cvss: {"score": 0.0, "vector": null}
references: {"types": ["WEB"], "url": "https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-6wjp-v33h-5cvq"}
references: {"types": ["WEB"], "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-61426"}
references: {"types": ["WEB"], "url": "https://www.vulncheck.com/advisories/praisonai-before-unauthenticated-agent-access-via-insecure-defaults"}
references: {"types": ["WEB"], "url": "https://github.com/advisories/GHSA-6wjp-v33h-5cvq"}
处理记录
补充资料

中文译文

正文译文暂缺,以下仅为中文摘要。

中文摘要

PraisonAI的AgentOS默认无鉴权并绑定全网卡,可未授权调用智能体并泄露系统提示词。

已采集原文

访问来源网页

概述 · Summary

The AgentOS server in the praisonai TypeScript/npm package ships an insecure default: it binds 0.0.0.0, sets no API key, and uses CORS * with credentials. The API-key middleware is only registered when an API key is configured, so the documented quickstart (new AgentOS({agents:[...]}).serve({port})) exposes, unauthenticated, GET /api/agents (which leaks agent names/roles/instructions, i.e. system prompts) and POST /api/chat (which invokes agents). Any network peer can read agent system prompts and drive the agent. Runtime-confirmed; severity High.

技术说明 · Details

Affected component

  • Package: praisonai (npm / TypeScript). Files src/praisonai-ts/src/os/config.ts and src/praisonai-ts/src/os/agentos.ts (AgentOS).

Vulnerable code / root cause

Path: src/praisonai-ts/src/os/config.ts

Class/const: DEFAULT_AGENTOS_CONFIG / mergeConfig

Snippet:

ts
export const DEFAULT_AGENTOS_CONFIG = {
  host: '0.0.0.0',
  corsOrigins: ['*'],
  apiKey: '',
  // ...
};
// mergeConfig: apiKey = userConfig?.apiKey ?? process.env.PRAISONAI_AGENTOS_API_KEY ?? '';

Issue: defaults bind all interfaces, with an empty API key and wildcard CORS. apiKey stays empty unless the developer explicitly sets it.

Path: src/praisonai-ts/src/os/agentos.ts

Function: serve / _registerRoutes (Express app)

Snippet:

ts
if (this.config.apiKey) {              // auth middleware ONLY added when apiKey is set
  app.use((req,res,next) => { /* 401 unless Bearer/x-auth-token matches */ });
}
// routes:
app.get(`${apiPrefix}/agents`, ...)    // returns name/role/instructions
app.post(`${apiPrefix}/chat`,  ...)    // calls agent.chat(message)

Issue: the only auth gate is conditional on a non-empty apiKey. With the default empty key, no auth middleware is registered, and GET /api/agents (system-prompt disclosure) and POST /api/chat (agent invocation) are served to any network client. CORS sets Access-Control-Allow-Credentials: true with a wildcard origin.

Attack flow

  1. Developer deploys AgentOS via the quickstart without setting apiKey/PRAISONAI_AGENTOS_API_KEY.
  2. Any network peer calls GET /api/agents → receives agent instructions/system prompts.
  3. Any network peer calls POST /api/chat → invokes the agent.

Why existing protection is bypassed

There is no protection in the default config — the auth gate is skipped when apiKey is empty (the default), and the server binds all interfaces.

Security boundary

Unauthenticated network access to agent metadata + invocation. This is the CVE-2026-44338 anti-pattern recurring in the TS package, and worse (0.0.0.0 is the default).

Proof of Concept

Environment

Real AgentOS from src/praisonai-ts run via ts-node in a node container with default config (stub agent, no LLM needed). 127.0.0.1:18000. Runnable assets: PraisonAI-Runtime-Repro\runtime-files\ (docker-compose.agentos.yml).

Steps to reproduce

  1. PRAI-01-01-AgentOS-Agents-NoAuth: GET /api/agents (no Authorization) → 127.0.0.1:18000.
  2. PRAI-01-02-AgentOS-Chat-NoAuth: POST /api/chat {"message":"hello from attacker"} (no Authorization).

Expected result

Non-loopback exposure should require authentication; agent instructions should not be disclosed unauthenticated.

Actual result

  • GET /api/agents → 200, leaks "instructions":"SYSTEM PROMPT SECRET ... PRAISONAI_INTERNAL_SECRET_CANARY_7f3a91"; response header Access-Control-Allow-Credentials: true.
  • POST /api/chat → 200, agent invoked ("response":"...PRAISONAI_AGENTOS_CANARY_7f3a91...").

Screenshots

Unauthenticated /api/agents leaks agent instructions

A GET request to /api/agents succeeds without an Authorization header. The response exposes agent metadata and instructions, including the canary system-prompt value.

<img width="1535" height="829" alt="01-AgentOS-Agents-NoAuth" src="https://github.com/user-attachments/assets/705087e1-8017-46f6-9a91-edb8312e2f26" />

Unauthenticated /api/chat invokes the agent

A POST request to /api/chat succeeds without an Authorization header. The response confirms that the attacker-controlled message was processed by the configured agent.

<img width="1537" height="833" alt="02-AgentOS-Chat-NoAuth" src="https://github.com/user-attachments/assets/5cdf8f56-b8d8-498b-87bd-44834f39998c" />

Reproduction assets

The attached archive contains the local Docker runtime used to reproduce the issue with controlled canary values only. It does not contain real secrets, third-party API keys, or production credentials.

PraisonAI-Runtime-Repro.zip

影响 · Impact

Unauthenticated disclosure of agent configuration/system prompts; unauthenticated agent invocation; LLM cost abuse; possible tool abuse depending on the configured agent's tools; permissive CORS-with-credentials.

Suggested remediation

  • Default host to 127.0.0.1; require apiKey (fail closed) when binding non-loopback.
  • Do not default corsOrigins to ['*'], especially with Access-Control-Allow-Credentials: true.
  • Do not return full instructions on an unauthenticated endpoint.

原文依据