PYSEC-2026-1311
Docassemble HTML and javascript injection
Quick fix
PYSEC-2026-1311 — docassemble-webapp: upgrade to the fixed version with the command below.
pip install --upgrade 'docassemble-webapp>=1.4.97'Details
### Impact 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 HTML can also contain `<script>` tags allowing JavaScript to execute on the page.
### Patches The vulnerability has been patched in version 1.4.97 of the master branch. The Docker image on docker.io has been patched.
### Workarounds If 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).
### Credit
The vulnerability was discovered by Riyush Ghimire (@richighimi).
### For more information If you have any questions or comments about this advisory:
* Open an issue in [docassemble](https://github.com/jhpyle/docassemble/issues) * Join the [Slack channel](https://join.slack.com/t/docassemble/shared_invite/zt-2cspzjo9j-YyE7SrLmi5muAvnPv~Bz~A) * Email us at jhpyle@gmail.com
Are you affected?
Enter the version of the package you're using.
Affected packages
0Fixed in: 1.4.97pip install --upgrade 'docassemble-webapp>=1.4.97'References
- https://github.com/jhpyle/docassemble/security/advisories/GHSA-pcfx-g2j2-f6f6[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2024-27290[ADVISORY]
- https://github.com/jhpyle/docassemble/commit/4801ac7ff7c90df00ac09523077930cdb6dea2aa[WEB]
- https://github.com/jhpyle/docassemble[PACKAGE]
- https://pypi.org/project/docassemble-webapp[PACKAGE]
- https://github.com/advisories/GHSA-pcfx-g2j2-f6f6[ADVISORY]