Advisory

PYSEC-2026-2056

Also known as: CVE-2024-25885, GHSA-jj5c-hhrg-vv5h

Summary

xhtml2pdf Denial of Service via crafted string

Details

An issue in the getcolor function in utils.py of xhtml2pdf v0.2.13 allows attackers to cause a Regular expression Denial of Service (ReDOS) via supplying a crafted string.

Severity

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

Dates

Published
2026-07-07 14:34 UTC
Modified
2026-07-07 17:48 UTC

Affected packages and fixes

xhtml2pdf

PyPI · All systems

Affected

  • introduced 0, last affected 0.2.16 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

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