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

- Severity: Medium 6.3 (CVSS:3.0, scored by @huntrdev) `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.59%, higher than 42% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-10-27T21:10:15.000Z
- Modified: 2026-06-17T04:05:57.797Z
- Also known as: GHSA-5jxc-hmqf-3f73
- Weaknesses: CWE-79
- Assigned by: @huntrdev

## Description

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

(As written by CVE List.)

## Affected

- getgrav getgrav/grav: from unspecified before 1.7.24
- getgrav/grav (Packagist): before 1.7.24
- getgrav grav: before 1.7.24

## Every score

- @huntrdev: CVSS:3.0 6.3 Medium `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.0 6.3 Medium `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 3.5 Low `AV:N/AC:M/Au:S/C:N/I:P/A:N`

## References

- <https://huntr.dev/bounties/b1182515-d911-4da9-b4f7-b4c341a62a8d> (exploit, issue-tracking, patch, third-party-advisory, web)
- <https://github.com/getgrav/grav/commit/afc69a3229bb6fe120b2c1ea27bc6f196ed7284d> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-3904> (advisory)
- <https://github.com/getgrav/grav> (web)

## Sources

- CVE List: [CVE-2021-3904](https://www.cve.org/CVERecord?id=CVE-2021-3904), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-5jxc-hmqf-3f73](https://github.com/advisories/GHSA-5jxc-hmqf-3f73), CC-BY-4.0, modified 2024-02-17
- NVD: [CVE-2021-3904](https://nvd.nist.gov/vuln/detail/CVE-2021-3904), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-3904 · Whole record: https://cve.day/CVE-2021-3904.json · Rebuilt by cve.day 2026-11-25T22:58:05.238Z
