CVE-2026-77240: CWE-639: Authorization Bypass Through User-Controlled Key in ArnasDon wacrm
WACRM is a self-hostable CRM template for WhatsApp. In version 0.7.0 and earlier, the profiles_update row-level security policy in supabase/migrations/017_account_sharing.sql permits authenticated users to modify their own account_role and account_id, allowing a viewer to self-promote or move into another tenant and then access or modify tenant resources. Separately, match_ai_knowledge_fts and match_ai_knowledge_semantic in supabase/migrations/030_ai_knowledge.sql run as SECURITY DEFINER, accept a caller-controlled p_account_id, and omit an is_account_member check, allowing an authenticated non-member to read another tenant's knowledge-base chunks. This vulnerability is fixed with commit e01f7ed37184f972ace8fb2da5c3e37e56a6050f.
AI Analysis
Technical Summary
In wacrm versions 0.7.0 and earlier, the profiles_update row-level security policy permits authenticated users to alter their account_role and account_id, enabling privilege escalation and tenant switching. Furthermore, the match_ai_knowledge_fts and match_ai_knowledge_semantic functions run as SECURITY DEFINER and accept a caller-controlled p_account_id parameter without verifying account membership, allowing authenticated users to read knowledge-base chunks from other tenants. The issue is addressed by a specific commit that corrects these security flaws.
Potential Impact
An attacker with authenticated access can escalate privileges to higher roles or switch tenants, gaining unauthorized access to or modification of tenant resources. Additionally, they can read sensitive knowledge-base data belonging to other tenants. The vulnerability impacts confidentiality, integrity, and availability of tenant data, rated critical with a CVSS score of 9.9.
Mitigation Recommendations
A fix is available and has been applied in a commit identified as e01f7ed37184f972ace8fb2da5c3e37e56a6050f. Users should upgrade to a version including this commit or later to remediate the vulnerability. No vendor advisory is provided, so verify the fix status in the official repository or release notes.
CVE-2026-77240: CWE-639: Authorization Bypass Through User-Controlled Key in ArnasDon wacrm
Description
WACRM is a self-hostable CRM template for WhatsApp. In version 0.7.0 and earlier, the profiles_update row-level security policy in supabase/migrations/017_account_sharing.sql permits authenticated users to modify their own account_role and account_id, allowing a viewer to self-promote or move into another tenant and then access or modify tenant resources. Separately, match_ai_knowledge_fts and match_ai_knowledge_semantic in supabase/migrations/030_ai_knowledge.sql run as SECURITY DEFINER, accept a caller-controlled p_account_id, and omit an is_account_member check, allowing an authenticated non-member to read another tenant's knowledge-base chunks. This vulnerability is fixed with commit e01f7ed37184f972ace8fb2da5c3e37e56a6050f.
CVSS v3.1
Score 9.9critical
Affected software
ArnasDon
wacrm
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
In wacrm versions 0.7.0 and earlier, the profiles_update row-level security policy permits authenticated users to alter their account_role and account_id, enabling privilege escalation and tenant switching. Furthermore, the match_ai_knowledge_fts and match_ai_knowledge_semantic functions run as SECURITY DEFINER and accept a caller-controlled p_account_id parameter without verifying account membership, allowing authenticated users to read knowledge-base chunks from other tenants. The issue is addressed by a specific commit that corrects these security flaws.
Potential Impact
An attacker with authenticated access can escalate privileges to higher roles or switch tenants, gaining unauthorized access to or modification of tenant resources. Additionally, they can read sensitive knowledge-base data belonging to other tenants. The vulnerability impacts confidentiality, integrity, and availability of tenant data, rated critical with a CVSS score of 9.9.
Mitigation Recommendations
A fix is available and has been applied in a commit identified as e01f7ed37184f972ace8fb2da5c3e37e56a6050f. Users should upgrade to a version including this commit or later to remediate the vulnerability. No vendor advisory is provided, so verify the fix status in the official repository or release notes.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-08-20T19:02:23.415Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6aad6b0955bf5e2cf541928c
Added to database: 09/18/2026, 16:47:05 UTC
Last enriched: 09/18/2026, 17:01:44 UTC
Last updated: 09/18/2026, 23:38:06 UTC
Views: 9
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.