All vulnerabilities

Packagist

CVE-2026-142210

TCPDF 7.0.0 before 7.0.20 Local File Allowlist Bypass via writeHTML() CSS url()

Severity
Medium 6.9
Published
2 Dec 2026
Last changed
2 Dec 2026
Added to UpHeron
2 Dec 2026
Fixed in
7.0.20
Weakness
Path traversal (CWE-22)
Attack
Over the network · No login needed · No user action needed
Attacker can
Read some data
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Sources
CVE Program

Description

TCPDF 7.0.0 before 7.0.20 contains an allowlist bypass vulnerability in cssSafeMarkupPath() that allows attackers to embed local files outside K_ALLOWED_PATHS via CSS url() values. Attackers controlling HTML rendered by writeHTML() can reference list-style-image or img| bullet paths containing uppercase characters, causing files to be copied to the temporary directory and embedded in generated PDFs.

From the CVE Program.

Affected software

SoftwareAffected versions
tecnickcom/tcpdfPackagist · osv:Packagist:tecnickcom/tcpdf
  • From 7.0.0 before 7.0.20

About tecnickcom/tcpdf

Monthly downloads (Packagist)
4,819,646Packagist, 2 Dec 2026
Total downloads (Packagist)
129,311,272Packagist, 2 Dec 2026

This is the only vulnerability in tecnickcom/tcpdf in our list.

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-142210