File Upload Vulnerability in HeyForm Open-Source Form Builder
CVE-2026-45797
6.4MEDIUM
What is CVE-2026-45797?
HeyForm, a widely used open-source form builder, presents a security risk prior to version 3.0.0-rc.7 due to its /api/upload endpoint. This endpoint allows unauthenticated users to upload files, particularly SVG files, which are stored in the static assets directory. Once uploaded, these SVG files are served with the Content-Type: image/svg+xml via Express's serve-static middleware. This behavior enables potential attackers to execute stored cross-site scripting (XSS) attacks on the HeyForm domain without requiring authentication. The vulnerability has been addressed in version 3.0.0-rc.7, which includes necessary patches to enhance security.
Affected Version(s)
heyform < 3.0.0-rc.7
