# MagicLink: Insecure Deserialization of MagicLink Actions Leads to Remote Code Execution

Advisory record · `GHSA-r33w-fg8j-9c94`

- **Identifiers:** `GHSA-r33w-fg8j-9c94` · `CVE-2026-61701` · `PKSA-n3xg-c9dz-5k25`
- **State:** Confirmed
- **Severity:** CVSS 8.8 High
- **Critical:** No
- **Weakness (CWE):** [CWE-502](https://cwe.mitre.org/data/definitions/502.html)
- **Tags:** [Insecure deserialization](https://agentprime.io/advisories/tag/deserialization.md)
- **Published:** 12 Feb 2026
- **Updated:** 15 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 12 Feb 2026, 22:11 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `cesargb/laravel-magiclink` (Packagist): affected `>=2.0.0, <2.25.1`; fixed in `2.25.1`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Packagist package cesargb/laravel-magiclink, versions from 2.0.0 before 2.25.1, deserializes action objects stored in the magic_links.action database column without integrity checks or class restrictions. An attacker who can manipulate those database records, for example through SQL injection or compromised admin access, could inject malicious serialized objects that lead to remote code execution when the magic link is visited. Upgrade to version 2.25.1, which adds HMAC signing of serialized data and class allowlisting.

Written 31 Oct 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 8.8 High, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0076, the 55th percentile, on 14 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 13:56 UTC: First seen by agentprime
- 31 Oct 2026, 13:56 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-r33w-fg8j-9c94)

## Sources

- [GitHub Advisory Database: GHSA-r33w-fg8j-9c94](https://github.com/advisories/GHSA-r33w-fg8j-9c94)
- [OSV: GHSA-r33w-fg8j-9c94](https://osv.dev/vulnerability/GHSA-r33w-fg8j-9c94)
- <https://github.com/cesargb/laravel-magiclink/security/advisories/GHSA-r33w-fg8j-9c94>
- <https://github.com/cesargb/laravel-magiclink>
- <https://github.com/cesargb/laravel-magiclink/releases/tag/v2.25.1>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-r33w-fg8j-9c94>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-r33w-fg8j-9c94/>. Everything for agents: <https://agentprime.io/llms.txt>.
