{"id":"CVE-2026-125397","state":"PUBLISHED","title":"NocoBase plugin-ai 2.1.0 through 2.2.41 Authorization Bypass via Sub-Agent Username Override","description":"NocoBase plugin-ai 2.1.0 through 2.2.41 contains an authorization bypass vulnerability in getAccessibleAIEmployee() that lets authenticated users access unassigned AI employees by overriding the role-derived filter with a supplied username. Attackers can use the dispatch-sub-agent-task tool to run ungranted AI employees with their tools and permissions, and get-ai-employee to read their prompts and tool configuration.","publishedAt":"2026-11-09T23:28:00.802Z","updatedAt":"2026-11-09T23:28:00.802Z","severity":{"score":7.1,"label":"High","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N","source":"VulnCheck"},"assigner":"VulnCheck","products":["nocobase nocobase"],"affected":[{"vendor":"nocobase","product":"nocobase","packageURL":"pkg:npm/%40nocobase/plugin-ai","defaultStatus":"unaffected","versions":[{"version":"2.1.0","status":"affected","lessThanOrEqual":"2.2.41","versionType":"semver"}]}],"references":["https://github.com/nocobase/nocobase/pull/11009","https://github.com/nocobase/nocobase/commit/ae5a05954e20608de510c33847089269cb37411a","https://github.com/nocobase/nocobase","https://github.com/nocobase/nocobase/blob/v2.2.41/packages/plugins/@nocobase/plugin-ai/src/ai/tools/sub-agents/shared.ts#L26-L33","https://www.vulncheck.com/advisories/nocobase-plugin-ai-2.1.0-through-2.2.41-authorization-bypass-via-sub-agent-username-override"],"weaknesses":["CWE-863"],"ingestedAt":"2026-11-09T23:36:06.628Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/125xxx/CVE-2026-125397.json","commit":"b5e35fd13cceb3fc2d7ace24f43c95cd80e7dc5f","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-125397","state":"PUBLISHED","datePublished":"2026-11-09T23:28:00.802Z","dateUpdated":"2026-11-09T23:28:00.802Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-11-09T22:03:14.064Z"},"containers":{"cna":{"title":"NocoBase plugin-ai 2.1.0 through 2.2.41 Authorization Bypass via Sub-Agent Username Override","descriptions":[{"lang":"en","value":"NocoBase plugin-ai 2.1.0 through 2.2.41 contains an authorization bypass vulnerability in getAccessibleAIEmployee() that lets authenticated users access unassigned AI employees by overriding the role-derived filter with a supplied username. Attackers can use the dispatch-sub-agent-task tool to run ungranted AI employees with their tools and permissions, and get-ai-employee to read their prompts and tool configuration."}],"affected":[{"vendor":"nocobase","product":"nocobase","packageURL":"pkg:npm/%40nocobase/plugin-ai","defaultStatus":"unaffected","versions":[{"version":"2.1.0","status":"affected","lessThanOrEqual":"2.2.41","versionType":"semver"}]}],"references":[{"url":"https://github.com/nocobase/nocobase/pull/11009","tags":["issue-tracking","patch"],"name":"Pull Request #11009"},{"url":"https://github.com/nocobase/nocobase/commit/ae5a05954e20608de510c33847089269cb37411a","tags":["patch"],"name":"Patch Commit"},{"url":"https://github.com/nocobase/nocobase","tags":["product"]},{"url":"https://github.com/nocobase/nocobase/blob/v2.2.41/packages/plugins/@nocobase/plugin-ai/src/ai/tools/sub-agents/shared.ts#L26-L33","tags":["technical-description"]},{"url":"https://www.vulncheck.com/advisories/nocobase-plugin-ai-2.1.0-through-2.2.41-authorization-bypass-via-sub-agent-username-override","name":"VulnCheck Advisory: NocoBase plugin-ai 2.1.0 through 2.2.41 Authorization Bypass via Sub-Agent Username Override","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","cvssV4_0":{"version":"4.0","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N","attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"LOW","userInteraction":"NONE","vulnConfidentialityImpact":"LOW","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":7.1,"baseSeverity":"HIGH"}},{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"LOW","integrityImpact":"HIGH","availabilityImpact":"NONE","baseScore":7.1,"baseSeverity":"HIGH"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-863","lang":"en","description":"Incorrect Authorization","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-11-09T23:28:00.802Z"},"datePublic":"2026-10-18T00:00:00.000Z","credits":[{"lang":"en","value":"Fiona","type":"finder"}],"x_generator":{"engine":"vulncheck-endgame"}}}}}