# Reliance on Cookies without Validation and Integrity Checking in getgrav/grav

Advisory record · `GHSA-cg3q-59w7-rvc2`

- **Identifiers:** `GHSA-cg3q-59w7-rvc2` · `CVE-2021-3818` · `PKSA-4ky1-h6sk-d69f`
- **State:** Confirmed
- **Severity:** CVSS 6.3 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-565](https://cwe.mitre.org/data/definitions/565.html)
- **Tags:** [CWE-565](https://agentprime.io/advisories/tag/cwe-565.md)
- **Published:** 29 Sept 2021
- **Updated:** 8 Nov 2023
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 29 Sept 2021, 17:12 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `getgrav/grav` (Packagist): affected `<1.7.21`; fixed in `1.7.21`

## Machine-written summary

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

> Grav versions before 1.7.21 are vulnerable to a cookie with an overly broad path, which can be read by other applications on the same domain. An attacker would need to control or host another application on that domain, and could then access cookies such as session identifiers, so a flaw in one application could compromise another. Upgrade getgrav/grav to version 1.7.21 or later.

Written 5 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

- 6.3 Medium, CVSS 3.0: `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`, from CNA (@huntrdev)

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

## Timeline

- 31 Oct 2026, 14:33 UTC: First seen by agentprime
- 31 Oct 2026, 14:33 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-cg3q-59w7-rvc2)

## Sources

- [GitHub Advisory Database: GHSA-cg3q-59w7-rvc2](https://github.com/advisories/GHSA-cg3q-59w7-rvc2)
- [OSV: GHSA-cg3q-59w7-rvc2](https://osv.dev/vulnerability/GHSA-cg3q-59w7-rvc2)
- <https://github.com/getgrav/grav/commit/c51fb1779b83f620c0b6f3548d4a96322b55df07>
- <https://github.com/getgrav/grav>
- <https://huntr.dev/bounties/c2bc65af-7b93-4020-886e-8cdaeb0a58ea>

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-cg3q-59w7-rvc2>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-cg3q-59w7-rvc2/>. Everything for agents: <https://agentprime.io/llms.txt>.
