CVE-2024-56519: TCPDF lacks SVG sanitization
An issue was discovered in TCPDF before 6.8.0. setSVGStyles does not sanitize the SVG font-family attribute.
Published Dec 27, 2024 · Updated Nov 3, 2025
Affected packages
tecnickcom/tcpdf
- Ecosystem
- Composer (PHP)
- Affected
- < 6.8.0
- Fixed in
- 6.8.0
- Check
composer show tecnickcom/tcpdf
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
An issue was discovered in TCPDF before 6.8.0. setSVGStyles does not sanitize the SVG font-family attribute.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-56519
- https://github.com/tecnickcom/TCPDF/commit/c9f41cbb84880bdb4fc3e0a9d287214d1ac4d7f4
- https://github.com/tecnickcom/TCPDF/compare/6.7.8...6.8.0
- https://tcpdf.org
- https://lists.debian.org/debian-lts-announce/2025/06/msg00004.html
- https://github.com/advisories/GHSA-4p8j-vhjm-6pvw
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2024-56521
TCPDF missing certificate validation
high8.2Dec 27, 2024CVE-2024-56522
TCPDF has incorrect comparison
high7.5Dec 27, 2024CVE-2024-56527
TCPDF missing character escape on error messages
medium4.8Dec 27, 2024CVE-2024-51058
TCPDF Local File Inclusion vulnerability
medium6.2Nov 26, 2024CVE-2024-22640
TCPDF vulnerable to Regular Expression Denial of Service
medium5.1Apr 19, 2024CVE-2024-32489
TCPDF Cross-site Scripting vulnerability
medium6.1Apr 15, 2024
