{"id":"CVE-2024-35621","aliases":["CVE-2024-35621","GHSA-gx8m-f3mp-fg99"],"related":[],"kind":"vulnerability","state":"published","title":"formwork Cross-site scripting vulnerability in Markdown fields","summary":"A cross-site scripting (XSS) vulnerability in the Edit function of Formwork before 1.13.0 allows attackers to execute arbitrary web scripts or HTML via a crafted payload injected into the Content field.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A cross-site scripting (XSS) vulnerability in the Edit function of Formwork before 1.13.0 allows attackers to execute arbitrary web scripts or HTML via a crafted payload injected into the Content field.","source":"cvelist"},{"lang":"en","text":"### Impact\nUsers with access to the administration panel with page editing permissions could insert `<script>` tags in markdown fields, which are exposed on the publicly accessible site pages, leading to potential XSS injections.\n\n### Patches\n\n- [**Formwork 1.13.0**](https://github.com/getformwork/formwork/releases/tag/1.13.0) has been released with a patch that solves this vulnerability. Now the system config option `content.safe_mode` (enabled by default) controls whether HTML tags and potentially dangerous links are escaped. This is configurable as in some cases more flexibility should be given. Panel users should be only a controlled group of editors, which cannot enable the option by themselves, and not a generic group. This mitigates the chance of introducing vulnerabilities.\n- [**Formwork 2.x** (6adc302)](https://github.com/getformwork/formwork/commit/6adc302f5a294f2ffbbf1571dd4ffea6b7876723) adds a similar `content.safeMode` system option. Like Formwork 1.13.0, by default HTML tags and dangerous link are escaped. Even if enabled by an administrator, however, `<script>` and other dangerous tags are still converted to text, but secure tags are allowed.\n\n### References\nhttps://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-35621","format":"markdown","source":"ghsa"},{"lang":"es","text":"Una vulnerabilidad de Cross-site scripting (XSS) en la función de edición de Formwork anterior a 1.13.0 permite a los atacantes ejecutar scripts web o HTML arbitrario a través de un payload manipulado inyectado en el campo Contenido.","source":"nvd"}],"published":"2024-05-28T15:40:26.625Z","modified":"2026-07-08T06:53:06.086Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N","score":4.8,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N","score":4.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N","score":4.8,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.13.0"}],"ecosystem":"Packagist","package":"getformwork/formwork","purl":"pkg:composer/getformwork/formwork","source":"ghsa"}],"references":[{"url":"https://github.com/getformwork/formwork/security/advisories/GHSA-gx8m-f3mp-fg99","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-35621","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/getformwork/formwork/commit/2d92e6dbf99a9a49797947afbda0cdd4e56e11df","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/getformwork/formwork/commit/6adc302f5a294f2ffbbf1571dd4ffea6b7876723","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/getformwork/formwork","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-08-16T18:03:04.799Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-35621","url":"https://www.cve.org/CVERecord?id=CVE-2024-35621","licence":"CVE Terms of Use","modified":"2025-03-28T19:29:27.818Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gx8m-f3mp-fg99","url":"https://github.com/advisories/GHSA-gx8m-f3mp-fg99","licence":"CC-BY-4.0","modified":"2026-07-08T06:53:06.086Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-35621","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-35621","licence":"Public domain","modified":"2026-06-17T07:35:04.847Z"}],"updatedAt":"2026-11-25T22:58:41.008Z","epss":{"score":0.00271,"percentile":0.20667,"date":"2026-12-01T12:00:22.000Z"}}