Vulnerability · Published Sep 14, 2026 · Assigned by GitHub_M

CVE-2026-61701Laravel MagicLink: Insecure Deserialization of MagicLink Actions Leads to Remote Code Execution

High 8.8

In plain English

A high-severity unsafe deserialization in laravel-magiclink from cesargb. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 56% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.8High
Exploit odds (30 days)0.8%top 44.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

Laravel MagicLink creates links for authentication without a password or for accessing private content. From 2.0.0 until 2.25.1, MagicLink stores serialized action objects in the magic_links.action database column and deserializes them through src/MagicLink.php and src/Actions/ResponseAction.php without sufficient integrity protection, while an unsafe legacy unserialize() fallback remains reachable. An attacker who can manipulate database records, such as through a separate SQL injection or compromised administrative access, can insert a malicious serialized object graph containing executable closure behavior; visiting the associated magic link then deserializes the record and can execute arbitrary code in the application process. The affected path is restricted to manipulated action records and does not independently provide database-write access. This issue is fixed in version 2.25.1.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Packagistcesargb/laravel-magiclink2.25.1GHSA-r33w-fg8j-9c94

Affected products (as reported)

VendorProductVersions
cesargb laravel-magiclink >= 2.0.0, < 2.25.1

Weakness: CWE-502 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

References