← Back to CVEs
Krayin CRM

Krayin CRM 2.2.6 Stored Template Injection XSS via Lead Title

September 2026 — Common Vulnerabilities and Exposures (CVE)

A GitHub repository version of this disclosure can be read here: CVE-2026-48540.


DetailInformation
CVE RecordCVE-2026-48540
Severity5.1 Medium (CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N)
5.4 Medium (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N)
Date Published2026-09-24
Software NameKrayin CRM
Affected Version(s)0 through 2.2.6
Software Linkhttps://github.com/krayin/laravel-crm/tree/2.2
VendorWebkul
Researcher CreditsAaron Amran Bin Amiruddin (@aaronamran)

Description

Krayin CRM through 2.2.6 contains a stored client-side template injection vulnerability that allows authenticated attackers to execute arbitrary JavaScript in other users' browsers by injecting Vue.js template expressions into the lead title field. Attackers can craft a lead title containing double-brace template syntax that reaches the Vue template compiler, enabling prototype chain traversal to retrieve the Function constructor and execute attacker-supplied JavaScript in the application origin for every user who views the affected lead record.


Proof-of-Concept

1. On a Krayin instance running a version prior to 2.2.6, navigate to Dashboard > Leads > Create Lead. Fill in the details required. The payload is placed only in the Title field.

CVE-2026-48540 Image 1

2. Viewing the latest created Lead will trigger an alert popup, indicating a successful XSS attack via CSTI.

CVE-2026-48540 Image 2


Vulnerable Code Section

<!-- Title -->
<h1 class="text-lg font-bold dark:text-white">
    {{ $lead->title }}
</h1>

Recommended Fix

<!-- Title -->
<h1 class="text-lg font-bold dark:text-white" v-pre>
    {{ $lead->title }}
</h1>

Timeline



See you in the next hack.

@aaronamran

September 2026