{"id":"CVE-2026-45797","summary":"HeyForm Vulnerable to Stored XSS via Unauthenticated SVG File Upload","details":"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.","aliases":["GHSA-m94h-jxvc-hhch"],"modified":"2026-07-24T03:56:47.637263159Z","published":"2026-07-20T15:43:13.473Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45797.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-434","CWE-79"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45797.json"},{"type":"ADVISORY","url":"https://github.com/heyform/heyform/security/advisories/GHSA-m94h-jxvc-hhch"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45797"},{"type":"FIX","url":"https://github.com/heyform/heyform/commit/144240e5545d10fd9e120d05ccb402a6d7064674"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/heyform/heyform","events":[{"introduced":"0"},{"fixed":"144240e5545d10fd9e120d05ccb402a6d7064674"}],"database_specific":{"source":["AFFECTED_FIELD","REFERENCES"],"extracted_events":[{"introduced":"0"},{"fixed":"3.0.0-rc.7"}]}}],"versions":["v3.0.0-rc.6","v3.0.0-rc.5","v3.0.0-rc.4","v3.0.0-rc.3","v3.0.0-rc.2","v3.0.0-rc.1","v3.0.0-alpha.3","v3.0.0-alpha-2","v0.1.0","v0.0.17","v0.0.16","v0.0.15","v0.0.13","v0.0.12","v0.0.11","v0.0.10","v0.0.9","v0.0.8","v0.0.7","v0.0.6","v0.0.5","v0.0.4","v0.0.3","v0.0.2","v0.0.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45797.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"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"}]}