# CVE-2021-32245: Cross-site scripting in PageKit

- Severity: Medium 5.4 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- 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.54%, higher than 46% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-06-16T20:37:41.000Z
- Modified: 2026-06-17T03:52:50.720Z
- Also known as: GHSA-mrwr-2945-fr22
- Weaknesses: CWE-79
- Assigned by: mitre

## Description

In PageKit v1.0.18, a user can upload SVG files in the file upload portion of the CMS. These SVG files can contain malicious scripts. This file will be uploaded to the system and it will not be stripped or filtered. The user can create a link on the website pointing to "/storage/exp.svg" that will point to http://localhost/pagekit/storage/exp.svg. When a user comes along to click that link, it will trigger a XSS attack.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- pagekit/pagekit (Packagist): up to 1.0.18
- pagekit pagekit: 1.0.18

## Every score

- GitHub: 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: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://github.com/pagekit/pagekit/issues/963> (exploit, issue-tracking, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-32245> (advisory)

## Sources

- CVE List: [CVE-2021-32245](https://www.cve.org/CVERecord?id=CVE-2021-32245), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-mrwr-2945-fr22](https://github.com/advisories/GHSA-mrwr-2945-fr22), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-32245](https://nvd.nist.gov/vuln/detail/CVE-2021-32245), Public domain, modified 2026-06-17

---

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