ADVISORIES

Vulnerability

CVE-2024-25885

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.

5 advisories report this vulnerability, across 4 ecosystems.

Advisories in PyPI

  • GHSA-jj5c-hhrg-vv5h

    xhtml2pdf Denial of Service via crafted string

    Moderate CVE-2024-25885 PyPI Updated 7 July 2026
  • PYSEC-2026-2056

    xhtml2pdf Denial of Service via crafted string

    CVE-2024-25885 PyPI Updated 7 July 2026

References