{"id":"CVE-2024-27290","aliases":["CVE-2024-27290","GHSA-pcfx-g2j2-f6f6","PYSEC-2026-1311"],"related":[],"kind":"vulnerability","state":"published","title":"Docassemble HTML and javascript injection","summary":"Docassemble is an expert system for guided interviews and document assembly. Prior to 1.4.97, a user could type HTML into a field, including the field for the user's name, and then that HTML could be displayed on the screen as HTML. The vulnerability has been patched in version 1.4.97 of the master branch.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Docassemble is an expert system for guided interviews and document assembly. Prior to 1.4.97, a user could type HTML into a field, including the field for the user's name, and then that HTML could be displayed on the screen as HTML. The vulnerability has been patched in version 1.4.97 of the master branch.","source":"cvelist"},{"lang":"en","text":"### Impact\nA user could type HTML into a field, including the field for the user's name, and then that HTML could be displayed on the screen as HTML. The HTML can also contain `<script>` tags allowing JavaScript to execute on the page.\n\n### Patches\nThe vulnerability has been patched in version 1.4.97 of the master branch. The Docker image on docker.io has been patched.\n\n### Workarounds\nIf upgrading is not possible, manually apply the changes of [4801ac7](https://github.com/jhpyle/docassemble/commit/4801ac7ff7c90df00ac09523077930cdb6dea2aa) and restart the server (e.g., by pressing Save on the Configuration screen).\n\n### Credit\n\nThe vulnerability was discovered by Riyush Ghimire (@richighimi).\n\n### For more information\nIf you have any questions or comments about this advisory:\n\n* Open an issue in [docassemble](https://github.com/jhpyle/docassemble/issues)\n* Join the [Slack channel](https://join.slack.com/t/docassemble/shared_invite/zt-2cspzjo9j-YyE7SrLmi5muAvnPv~Bz~A)\n* Email us at jhpyle@gmail.com","format":"markdown","source":"ghsa"},{"lang":"es","text":"Docassemble es un sistema experto para entrevistas guiadas y montaje de documentos. Antes de 1.4.97, un usuario podía escribir HTML en un campo, incluido el campo para el nombre del usuario, y luego ese HTML podía mostrarse en la pantalla como HTML. La vulnerabilidad ha sido parcheada en la versión 1.4.97 de la rama maestra.","source":"nvd"}],"published":"2024-02-29T21:44:18.512Z","modified":"2026-09-10T03:50:06.476Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 1.4.97","status":"affected"}],"vendor":"jhpyle","product":"docassemble","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.4.97"}],"ecosystem":"PyPI","package":"docassemble-webapp","purl":"pkg:pypi/docassemble-webapp","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.4.97"}],"vendor":"jhpyle","product":"docassemble","cpe":"cpe:2.3:a:jhpyle:docassemble:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.4.97"}],"ecosystem":"PyPI","package":"docassemble-webapp","purl":"pkg:pypi/docassemble-webapp","source":"pysec"}],"references":[{"url":"https://github.com/jhpyle/docassemble/security/advisories/GHSA-pcfx-g2j2-f6f6","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/jhpyle/docassemble/commit/4801ac7ff7c90df00ac09523077930cdb6dea2aa","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27290","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/jhpyle/docassemble","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/docassemble-webapp","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-pcfx-g2j2-f6f6","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-08-05T14:49:29.388Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-27290","url":"https://www.cve.org/CVERecord?id=CVE-2024-27290","licence":"CVE Terms of Use","modified":"2024-08-05T15:06:29.373Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-pcfx-g2j2-f6f6","url":"https://github.com/advisories/GHSA-pcfx-g2j2-f6f6","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:06.476Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-27290","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27290","licence":"Public domain","modified":"2026-06-17T07:19:35.123Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1311","url":"https://osv.dev/vulnerability/PYSEC-2026-1311","licence":"CC-BY-4.0","modified":"2026-07-07T17:46:38.914Z"}],"updatedAt":"2026-11-25T22:58:37.788Z","epss":{"score":0.00434,"percentile":0.39448,"date":"2026-12-01T12:00:22.000Z"}}