CVE-2024-56519: Tecnickcom/tcpdf TCPDF Lacks SVG Sanitization Vulnerability
MODERATECVE-2024-56519 is a MODERATE tcpdf lacks svg sanitization vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Tecnickcom/tcpdf libraries in the Packagist ecosystem. The issue involves tcpdf lacks svg sanitization. Remediation is available by upgrading affected packages to version 6.8.0.
CVE-2024-56519 at a Glance
How to Fix CVE-2024-56519
To remediate this vulnerability, upgrade all affected Tecnickcom/tcpdf dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade tecnickcom/tcpdf to 6.8.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for tecnickcom/tcpdf
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-56519, inspect your project dependencies for Tecnickcom/tcpdf:
inspect dependencies for tecnickcom/tcpdf
Analyze the terminal output to locate any version of Tecnickcom/tcpdf in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.8.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Tecnickcom/tcpdf, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-56519 Affected Tecnickcom/tcpdf Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
tecnickcom/tcpdf
|
Packagist |
< 6.8.0
|
6.8.0
|
References
Frequently Asked Questions
What is CVE-2024-56519?
Which Tecnickcom/tcpdf versions are affected?
What version fixes CVE-2024-56519?
Is tecnickcom/tcpdf affected?
What CWE is associated with CVE-2024-56519?
How can I check Packagist dependencies for CVE-2024-56519?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-4p8j-vhjm-6pvw",
"modified" : "2025-11-03T22:53:30Z",
"published" : "2024-12-27T06:30:47Z",
"aliases" : [ "CVE-2024-56519" ],
"summary" : "TCPDF lacks SVG sanitization",
"details" : "An issue was discovered in TCPDF before 6.8.0. setSVGStyles does not sanitize the SVG font-family attribute.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "tecnickcom/tcpdf"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.8.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-56519"
}, {
"type" : "WEB",
"url" : "https://github.com/tecnickcom/TCPDF/commit/c9f41cbb84880bdb4fc3e0a9d287214d1ac4d7f4"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/tecnickcom/TCPDF"
}, {
"type" : "WEB",
"url" : "https://github.com/tecnickcom/TCPDF/compare/6.7.8...6.8.0"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2025/06/msg00004.html"
}, {
"type" : "WEB",
"url" : "https://tcpdf.org"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-12-27T19:52:37Z",
"nvd_published_at" : "2024-12-27T05:15:07Z"
}
}