Skip to main content
Vulnerability Database/CVE-2026-112287

CVE-2026-112287: Krayin CRM Auth Bypass Vulnerability

CVE-2026-112287 is an authentication bypass flaw in Krayin CRM that allows authenticated users to manipulate other users' emails through broken object level authorization. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-112287 Overview

CVE-2026-112287 is a broken object level authorization vulnerability [CWE-639] in Krayin CRM versions prior to 2.2.7. The flaw exists in the EmailController write actions and allows scope-restricted authenticated users to manipulate other users' emails by supplying their numeric IDs. Attackers can invoke update, destroy, mass-update, and mass-destroy endpoints to edit, re-send via is_draft=0, trash, or permanently delete emails belonging to other users. Successful exploitation also discloses email subject, body, and linked lead and person data.

Critical Impact

Any authenticated user with scoped mail access can read, modify, re-send, or destroy other users' emails and linked CRM records by iterating numeric IDs against the mail endpoints.

Affected Products

  • Krayin CRM versions prior to 2.2.7
  • Krayin Laravel CRM Webkul/Admin Mail module (EmailController)
  • Krayin CRM v2.2.6 (confirmed vulnerable release)

Discovery Timeline

  • 2026-10-19 - CVE-2026-112287 published to NVD
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-112287

Vulnerability Analysis

The vulnerability resides in the Mail module EmailController within the Webkul/Admin package. Write-action endpoints resolve the target email solely from the numeric id supplied in the request. The controller does not verify that the acting user owns the record or has data-scope access to it. As a result, scope-restricted users can enumerate IDs and operate on records assigned to other users.

Beyond write actions, the response bodies returned by these endpoints include email subject, body, and relational data for linked lead and person records. This converts a missing authorization check into a disclosure primitive for CRM pipeline data.

Root Cause

The controller actions trust the request-supplied email ID without applying the Bouncer authorization scope that the listing and data-grid views already enforce. The repository call retrieves any record globally rather than being constrained to user_id values returned by bouncer()->getAuthorizedUserIds(). The patch in pull request #2683 corrects the pattern across controllers by scoping repository queries to authorized user IDs.

Attack Vector

An authenticated user with limited mail permissions sends authenticated HTTP requests to the mail update, destroy, mass-update, or mass-destroy routes with another user's email ID. The server executes the write action and returns the record contents. Setting is_draft=0 on an update call can additionally cause the application to send the modified email.

php
     */
    public function search(): AnonymousResourceCollection
    {
-        $quotes = $this->quoteRepository
-            ->pushCriteria(app(RequestCriteria::class))
-            ->all();
+        $quoteRepository = $this->quoteRepository
+            ->pushCriteria(app(RequestCriteria::class));
+
+        /**
+         * Scope the result to the acting user's data scope, the same way the listing and the data
+         * grid already are. Without it this endpoint returned every quote — subject, description,
+         * billing and shipping address, totals, and the linked person's contact details — to any
+         * user with quote access, regardless of who owned the record.
+         */
+        if ($userIds = bouncer()->getAuthorizedUserIds()) {
+            $quotes = $quoteRepository->findWhereIn('user_id', $userIds);
+        } else {
+            $quotes = $quoteRepository->all();
+        }

        return QuoteResource::collection($quotes);
    }

Source: GitHub Commit 64b9125 — the same scoping pattern applied in QuoteController is applied to the Mail module controllers to fix CVE-2026-112287.

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2026-112287

Indicators of Compromise

  • Authenticated requests from low-privilege accounts to POST/PUT/DELETE endpoints under the admin mail route (update, destroy, mass-update, mass-destroy) referencing email IDs the user does not own.
  • Email records with is_draft flipped from 1 to 0 outside of expected sender activity, followed by outbound SMTP traffic.
  • Sequential or enumerated numeric email id values appearing in access logs from a single session.
  • Unexpected deletion or modification events in the emails table correlated to accounts without ownership of the records.

Detection Strategies

  • Instrument application logs to record the acting user_id, target email.id, and target email.user_id for every mail write action, then alert on mismatches.
  • Deploy a web application firewall rule or middleware check that compares the authenticated user's authorized scope against the resolved record owner.
  • Review database audit trails for mass-update and mass-destroy operations and correlate them with the invoking user's assigned data scope.

Monitoring Recommendations

  • Baseline normal per-user volumes of mail update and destroy calls and alert on deviations.
  • Monitor outbound mail queues for messages whose created_by user differs from the user that last modified the record.
  • Track access to the /admin/mail/* route group by role and flag write actions from read-only or restricted roles.

How to Mitigate CVE-2026-112287

Immediate Actions Required

  • Upgrade Krayin CRM to version 2.2.7 or later, which contains the fix merged via pull request #2683.
  • Audit the emails table and application logs for unauthorized update, destroy, mass-update, and mass-destroy activity since deployment.
  • Rotate any credentials, tokens, or sensitive data that may have been disclosed through email subject, body, or linked lead/person fields.
  • Temporarily restrict the admin mail routes to trusted administrators until the upgrade is complete.

Patch Information

The fix is included in GitHub Release v2.2.7 and implemented in commit 64b9125 via Pull Request #2683. The patch scopes repository queries to IDs returned by bouncer()->getAuthorizedUserIds() before performing write actions. See the VulnCheck Advisory for Krayin CRM for additional detail, and reference the vulnerable baseline in the GitHub Email Controller Source.

Workarounds

  • Add middleware that verifies the authenticated user's ID matches the target email's user_id for every write action on the mail endpoints.
  • Restrict role permissions so only administrators can reach the mail update, destroy, mass-update, and mass-destroy routes until the patched release is deployed.
  • Enforce reverse-proxy allow-lists on the /admin/mail/* route group to limit which authenticated identities can issue write requests.
bash
# Upgrade to the patched release
composer require krayin/laravel-crm:^2.2.7
php artisan migrate
php artisan config:clear
php artisan route:clear

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.