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.
Published: 2026-07-20
Score: 6.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

HeyForm’s upload service accepts arbitrary files through the /api/upload endpoint before authentication. SVG files are stored as static assets and served with the MIME type image/svg+xml. An attacker can embed malicious scripts inside an SVG, causing browsers that load the file to execute the script in the context of the heyform domain, leading to stored cross‑site scripting. This permits an attacker to hijack sessions, deface pages, or perform other malicious actions on users who view the uploaded content.

Affected Systems

Products affected are the open‑source heyform form builder from the heyform organization. Any deployment running a version earlier than 3.0.0‑rc.7 is vulnerable. Version 3.0.0‑rc.7 includes a patch that removes the unauthenticated upload capability for SVG files and validates file types.

Risk and Exploitability

The CVSS score of 6.4 indicates a moderate severity. The EPSS score is 0.00404, indicating a very low but non‑zero probability of exploitation, and the vulnerability is not listed in the CISA KEV catalog, but the lack of authentication for the affected endpoint means an attacker with network access can upload a malicious SVG and any user who views the file will be impacted. The vulnerability relies on user interaction (viewing the uploaded SVG) rather than stealth exploitation, so the attack vector is relatively straightforward for a determined adversary. Given the moderate severity and the availability of a patch, the risk is high enough to warrant immediate remediation.

Generated by OpenCVE AI on July 30, 2026 at 19:13 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to heyform version 3.0.0‑rc.7 or later, which removes the unauthenticated SVG upload path.
  • If an upgrade is not immediately possible, block unauthenticated access to the /api/upload endpoint or require authentication for all file uploads.
  • Implement a file‑type filter on the upload route that rejects .svg files until the official patch is applied.

Generated by OpenCVE AI on July 30, 2026 at 19:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 23 Jul 2026 21:45:00 +0000

Type Values Removed Values Added
First Time appeared Heyform
Heyform heyform
Vendors & Products Heyform
Heyform heyform

Mon, 20 Jul 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 20 Jul 2026 16:15:00 +0000

Type Values Removed Values Added
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.
Title HeyForm Vulnerable to Stored XSS via Unauthenticated SVG File Upload
Weaknesses CWE-434
CWE-79
References
Metrics cvssV4_0

{'score': 6.4, '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-20T19:07:52.276Z

Reserved: 2026-05-13T08:19:32.603Z

Link: CVE-2026-45797

cve-icon Vulnrichment

Updated: 2026-07-20T19:01:36.991Z

cve-icon NVD

Status : Deferred

Published: 2026-07-20T16:17:00.743

Modified: 2026-07-22T20:50:36.493

Link: CVE-2026-45797

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T19:15:04Z

Weaknesses
  • CWE-434

    Unrestricted Upload of File with Dangerous Type

  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')