CVE-2024-32489: Tecnickcom/tcpdf Cross-Site Scripting Vulnerability
MODERATECVE-2024-32489 is a MODERATE (CVSS 6.1) cross-site scripting vulnerability (CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)) affecting Tecnickcom/tcpdf libraries in the Packagist ecosystem. The issue involves tcpdf cross-site scripting vulnerability. Remediation is available by upgrading affected packages to version 6.7.4.
CVE-2024-32489 at a Glance
Security Impact
CVSS: 6.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2024-32489
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.7.4
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-32489, 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.7.4), 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-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS), where the product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special characters such as "<", ">", and "&" that could be interpreted as web-scripting elements when they are sent to a downstream component that processes web pages. 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-32489 Affected Tecnickcom/tcpdf Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
tecnickcom/tcpdf
|
Packagist |
< 6.7.4
|
6.7.4
|
References
Frequently Asked Questions
What is CVE-2024-32489?
Which Tecnickcom/tcpdf versions are affected?
What version fixes CVE-2024-32489?
Is tecnickcom/tcpdf affected?
What is the CVSS score of CVE-2024-32489?
What CWE is associated with CVE-2024-32489?
How can I check Packagist dependencies for CVE-2024-32489?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-g9wg-98c2-qv3v",
"modified" : "2025-11-03T22:35:27Z",
"published" : "2024-04-15T06:30:35Z",
"aliases" : [ "CVE-2024-32489" ],
"summary" : "TCPDF Cross-site Scripting vulnerability",
"details" : "TCPDF before 6.7.4 mishandles calls that use HTML syntax.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "tecnickcom/tcpdf"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.7.4"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-32489"
}, {
"type" : "WEB",
"url" : "https://github.com/tecnickcom/TCPDF/commit/51cd1b39de5643836e62661d162c472d63167df7"
}, {
"type" : "WEB",
"url" : "https://github.com/tecnickcom/TCPDF/commit/82fc97bf1c74c8dbe62b1d3cc6d10fa4b87e0262"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/tecnickcom/TCPDF"
}, {
"type" : "WEB",
"url" : "https://github.com/tecnickcom/TCPDF/compare/6.6.2...6.7.4"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2025/06/msg00004.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79", "CWE-80" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-04-15T18:12:08Z",
"nvd_published_at" : "2024-04-15T06:15:11Z"
}
}