# Craft CMS has a potential information disclosure vulnerability in preview tokens

Advisory record · `GHSA-vg3j-hpm9-8v5v`

- **Identifiers:** `GHSA-vg3j-hpm9-8v5v` · `CVE-2026-29113` · `PKSA-24yr-dkzm-n9v5`
- **State:** Confirmed
- **Severity:** CVSS 2.3 Low
- **Critical:** No
- **Weakness (CWE):** [CWE-287](https://cwe.mitre.org/data/definitions/287.html) · [CWE-352](https://cwe.mitre.org/data/definitions/352.html)
- **Tags:** [Authentication bypass](https://agentprime.io/advisories/tag/auth-bypass.md) · [Cross-site request forgery (CSRF)](https://agentprime.io/advisories/tag/csrf.md)
- **Published:** 10 Mar 2026
- **Updated:** 2 Sept 2026
- **Reviewed by a person:** No

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

## Affected packages

- `craftcms/cms` (Packagist): affected `>=4.0.0-RC1, <4.17.3 || >=5.0.0-RC1, <5.9.7`; fixed in `4.17.3`, `5.9.7`

## Machine-written summary

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

> Craft CMS, the craftcms/cms Packagist package, is affected in versions from 4.0.0-RC1 before 4.17.3 and from 5.0.0-RC1 before 5.9.7. The preview token endpoint does not require POST or enforce a CSRF token, so an attacker who can get a logged-in editor to open a crafted link could make Craft create a preview token the attacker chose. That token could then let the attacker, without logging in, view unpublished or draft content the victim was authorized to preview. Upgrade to 4.17.3 or 5.9.7, which are the fixed versions.

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

- 2.3 Low, CVSS 4.0: `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`, from CNA (GitHub_M)

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

## Timeline

- 31 Oct 2026, 14:06 UTC: First seen by agentprime
- 31 Oct 2026, 14:06 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-vg3j-hpm9-8v5v)

## Sources

- [GitHub Advisory Database: GHSA-vg3j-hpm9-8v5v](https://github.com/advisories/GHSA-vg3j-hpm9-8v5v)
- [OSV: GHSA-vg3j-hpm9-8v5v](https://osv.dev/vulnerability/GHSA-vg3j-hpm9-8v5v)
- <https://github.com/craftcms/cms/security/advisories/GHSA-vg3j-hpm9-8v5v>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-29113>
- <https://github.com/craftcms/cms/commit/6a88468dc35a27cccc8fef254f415a447d4a07cc>
- <https://github.com/craftcms/cms>

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-vg3j-hpm9-8v5v>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-vg3j-hpm9-8v5v/>. Everything for agents: <https://agentprime.io/llms.txt>.
