Description
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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | xhtml2pdf | 0.2.16+dfsg-1 | — |
| Debian 13 | xhtml2pdf | 0.2.16+dfsg-1 | — |
| Debian 12 | xhtml2pdf | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | xhtml2pdf | No fix yet | — |
| Ubuntu 26.04 LTS | xhtml2pdf | No fix yet | — |
| Ubuntu 25.10 | xhtml2pdf | No fix yet | — |
| Ubuntu 24.04 LTS | xhtml2pdf | No fix yet | — |
| Ubuntu 22.04 LTS | xhtml2pdf | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | xhtml2pdf | No fix yet | — |
| Ubuntu 18.04 LTS | xhtml2pdf | No fix yet | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-xhtml2pdf | 0.2.16-2.1 | openSUSE-SU-2024:14601-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | xhtml2pdf | <= 0.2.16 | — | GHSA-jj5c-hhrg-vv5h |
Advisories 1
- openSUSE-SU-2024:14601-1 python310-xhtml2pdf-0.2.16-2.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026