Advisory

PYSEC-2026-1311

Also known as: CVE-2024-27290, GHSA-pcfx-g2j2-f6f6

Summary

Docassemble HTML and javascript injection

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 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:

Severity

Medium Basis: CVSS v3 score 6.1, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Dates

Published
2026-07-07 11:45 UTC
Modified
2026-07-07 17:46 UTC

Affected packages and fixes

docassemble-webapp

PyPI · All systems

Affected

  • introduced 0, fixed 1.4.97 (ecosystem)

Fixed versions

1.4.97

Fix

  • Fixed version 1.4.97
    pip install --upgrade docassemble-webapp==1.4.97

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences