Description
HeyForm is an open-source form builder. Prior to version 3.0.0-rc.7, the `/api/upload` endpoint allows unauthenticated file uploads including SVG files. Uploaded SVGs are stored in the static assets directory and served with `Content-Type: image/svg+xml` by Express's serve-static middleware, allowing an attacker to achieve stored cross-site scripting (XSS) on the heyform domain without any authentication. Version 3.0.0-rc.7 contains a patch for the issue.
Severity (CVSS)
| Base score | 6.4 |
|---|---|
| Severity | Medium |
| Version | CVSS 4.0 |
| Vector | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N |
| Provided by | CNA |
Weaknesses
- CWE-79 — CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
- CWE-434 — CWE-434: Unrestricted Upload of File with Dangerous Type
Affected products
| Vendor | Product | Versions |
|---|---|---|
| heyform | heyform | < 3.0.0-rc.7 |
References
- https://github.com/heyform/heyform/security/advisories/GHSA-m94h-jxvc-hhch (x_refsource_CONFIRM)
- https://github.com/heyform/heyform/commit/144240e5545d10fd9e120d05ccb402a6d7064674 (x_refsource_MISC)
Generated from the official CVE List on 21 Jul 2026 07:01 UTC.