Live threats

All CVEs / xhtml2pdf

CVE-2024-25885xhtml2pdf

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
0.9%
probability of exploitation in 30 days · percentile 59
Auth required
No
Published
Oct 8, 2024
Updated
Jul 5, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-1333
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for xhtml2pdf.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI xhtml2pdf ≤ 0.2.16 no fixed version —
PyPI xhtml2pdf ≤ 0.2.16 no fixed version —

Per OSV / GitHub Advisories (GHSA-jj5c-hhrg-vv5h, PYSEC-2026-2056). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.