{"id":"CVE-2024-25885","aliases":["GHSA-jj5c-hhrg-vv5h","PYSEC-2026-2056"],"title":"xhtml2pdf Denial of Service via crafted string","summary":"xhtml2pdf Denial of Service via crafted string","severity":"medium","cvss":5.3,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","vendor":"xhtml2pdf","product":"xhtml2pdf","ecosystem":"pip","affected":["xhtml2pdf <= 0.2.16"],"published":"2024-10-08","updated":"2026-07-07","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/GHSA-jj5c-hhrg-vv5h","references":[{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-25885"},{"url":"https://gist.github.com/salvatore-abello/c88dd0027496774023ef36c7b576d206"},{"url":"https://github.com/xhtml2pdf/xhtml2pdf"}],"tags":["osv","pip"],"epss":0.00642,"epssPercentile":0.49385,"ingestedAt":"2026-07-08T18:25:50.818Z","slug":"CVE-2024-25885","body":"## Overview\n\nAn 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.\n\n## Affected packages\n\n- `xhtml2pdf <= 0.2.16`\n\n## Remediation\n\nRefer to the advisory for the patched release.","depth":"sunlit","depthScore":29,"depthScoreParts":{"impact":29.2,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}