Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. cesargb/laravel-magiclink
  4. ›
  5. GHSA-r33w-fg8j-9c94

GHSA-r33w-fg8j-9c94: MagicLink: Insecure Deserialization of MagicLink Actions Leads to Remote Code Execution

February 12, 2026

MagicLink stores serialized action objects in the magic_links.action database column and deserializes them without integrity validation or class allowlisting in src/MagicLink.php and src/Actions/ResponseAction.php. An attacker with the ability to manipulate database records (e.g., via SQL injection or compromised admin access) could inject malicious serialized objects containing arbitrary closures, leading to Remote Code Execution (RCE) when the magic link is visited.

References

  • github.com/advisories/GHSA-r33w-fg8j-9c94
  • github.com/cesargb/laravel-magiclink
  • github.com/cesargb/laravel-magiclink/releases/tag/v2.25.1
  • github.com/cesargb/laravel-magiclink/security/advisories/GHSA-r33w-fg8j-9c94

Code Behaviors & Features

Detect and mitigate GHSA-r33w-fg8j-9c94 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.0.0 before 2.25.1

Fixed versions

  • 2.25.1

Solution

Upgrade to version 2.25.1 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-502: Deserialization of Untrusted Data

Source file

packagist/cesargb/laravel-magiclink/GHSA-r33w-fg8j-9c94.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 25 Mar 2026 00:17:38 +0000.