Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. xhtml2pdf
  4. ›
  5. CVE-2024-25885

CVE-2024-25885: xhtml2pdf Denial of Service via crafted string

October 8, 2024 (updated October 9, 2024)

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.

References

  • gist.github.com/salvatore-abello/c88dd0027496774023ef36c7b576d206
  • github.com/advisories/GHSA-jj5c-hhrg-vv5h
  • github.com/xhtml2pdf/xhtml2pdf
  • nvd.nist.gov/vuln/detail/CVE-2024-25885

Code Behaviors & Features

Detect and mitigate CVE-2024-25885 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 0.2.16

Solution

Unfortunately, there is no solution available yet.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity

Source file

pypi/xhtml2pdf/CVE-2024-25885.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:49 +0000.