# Saloon has insecure deserialization in AccessTokenAuthenticator

Advisory record · `GHSA-rf88-776r-rcq9`

- **Identifiers:** `GHSA-rf88-776r-rcq9` · `CVE-2026-33942` · `PKSA-xnj5-w74d-6wmz`
- **State:** Confirmed
- **Severity:** CVSS 8.1 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:** 27 Mar 2026
- **Updated:** 27 Mar 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 27 Mar 2026, 18:33 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `saloonphp/saloon` (Packagist): affected `<4.0.0`; fixed in `4.0.0`

## Machine-written summary

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

> Saloon (saloonphp/saloon) versions before 4.0.0 are affected through the AccessTokenAuthenticator class, which uses PHP unserialize() to restore OAuth token state from cache or storage. An attacker who can control the serialized data, such as by overwriting a cached token file, could inject an object that runs code when unserialized, potentially leading to remote code execution when common dependencies are present. Upgrade to Saloon 4.0.0 or later; the upgrade guide is referenced in the source, and the fix removes PHP serialization from this class.

Written 3 Nov 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.1 High, CVSS 4.0: `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0065, the 51st percentile, on 12 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:25 UTC: First seen by agentprime
- 31 Oct 2026, 14:25 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-rf88-776r-rcq9)

## Sources

- [GitHub Advisory Database: GHSA-rf88-776r-rcq9](https://github.com/advisories/GHSA-rf88-776r-rcq9)
- [OSV: GHSA-rf88-776r-rcq9](https://osv.dev/vulnerability/GHSA-rf88-776r-rcq9)
- <https://github.com/saloonphp/saloon/security/advisories/GHSA-rf88-776r-rcq9>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33942>
- <https://docs.saloon.dev/upgrade/upgrading-from-v3-to-v4>
- <https://github.com/saloonphp/saloon>

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-rf88-776r-rcq9>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-rf88-776r-rcq9/>. Everything for agents: <https://agentprime.io/llms.txt>.
