Privilege Escalation in Webkul Krayin CRM via SVG XSS
CVE-2025-3568 allows an authenticated low-privileged user to perform an administrative account takeover in Krayin CRM 2.0.0 and 2.1.0 by leveraging SVG-based XSS to bypass password verification controls.
CVE search metadata
CVE search record: CVE-2025-3568. Severity: low. CVSS: 3.5. EPSS: 0.43%. KEV: no. Product: Krayin CRM (2.0.0, 2.1.0). Brief: Privilege Escalation in Webkul Krayin CRM via SVG XSS. Brief link: https://feed.craftedsignal.io/briefs/2026-10-krayin-crm-xss/
Webkul Krayin CRM versions 2.0.0 and 2.1.0 contain a vulnerability (CVE-2025-3568) that enables privilege escalation via malicious SVG file uploads. The application fails to properly sanitize uploaded SVG files, allowing attackers to embed malicious JavaScript. When an administrator views or interacts with the uploaded file, the script executes in the context of the admin's session. Combined with a lack of current password verification on the user profile update API endpoint, an attacker can perform a Cross-Site Request Forgery (CSRF) attack to overwrite the administrative account password. This vulnerability enables full account takeover and unauthorized access to sensitive customer relationship management data.
Attack Chain
- Attacker (with low-privilege access) crafts a malicious SVG file containing an XSS payload designed to exfiltrate session tokens and initiate a password change request.
- Attacker uploads the malicious SVG file through a permitted CRM upload vector (e.g., email attachment or user profile media).
- Attacker triggers the administrator to open or preview the SVG file, which renders in the admin's browser session.
- The embedded JavaScript in the SVG executes, capturing the administrator's CSRF/XSRF tokens from the browser session.
- The script generates an unauthorized background request to the user management API (
/admin/settings/users/edit/[ID]). - The application processes the request, which fails to verify the current administrative password.
- The administrator account password is changed to a value specified by the attacker.
- Attacker logs into the CRM using the newly set credentials to gain full administrative control.
Impact
Successful exploitation results in full administrative account takeover. Impacted sectors include businesses using Krayin CRM to manage customer, financial, and lead information. The attack allows for unauthorized data exfiltration, backdooring of the CRM instance, and potential lateral movement or persistence within the business environment.
Recommendation
- Patch Webkul Krayin CRM to a non-vulnerable version immediately.
- Disable the ability to upload or render SVG files within the CRM interface until a vendor patch is applied.
- Implement strict Content Security Policy (CSP) headers to prevent the execution of inline scripts and unauthorized API requests from origin domains.
- Enable server-side validation for all administrative user management actions, requiring current password re-authentication for all account profile changes.
- Deploy the provided Sigma rule to detect POST requests to administrative user management endpoints that lack necessary authentication context or originate from non-standard user agents.
Immediate actions
Patch Krayin CRM to the latest secure version
Threat Hunt
Search web access logs for successful requests to /admin/settings/users/edit/ originating from low-privilege user accounts
Data: HTTP access logs
Mitigations
Disable SVG file uploads in Krayin CRM configuration
CVE-2025-3568
Detection coverage 1
Detects CVE-2025-3568 Exploitation - Unauthorized Admin Password Change Attempt
highDetects potential exploitation of CVE-2025-3568 by monitoring POST requests to the user management edit endpoint, which may indicate a CSRF attempt when not accompanied by expected user activity
Detection queries are available on the platform. Get full rules →