CVE-2026-142210: TCPDF 7.0.0 before 7.0.20 Local File Allowlist Bypass via writeHTML() CSS url()

Published Dec 2, 2026
·
Updated

TCPDF 7.0.0 before 7.0.20 contains an allowlist bypass vulnerability in cssSafeMarkupPath() that allows attackers to embed local files outside KALLOWEDPATHS 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.

Affected Software

1 affected component
composer/tecnickcom/tcpdf>=7.0.0<7.0.20

Event History

Dec 2, 2026
CVE Published
via MITRE·04:50 PM
Data Sourced
via MITRE·04:50 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:17 PM
DescriptionSeverityWeakness
Event
via NVD·05:17 PM

Frequently Asked Questions

1

Who is exposed to this issue?

Applications using TCPDF 7.0.0 through 7.0.19 are exposed if they render attacker-controlled HTML with writeHTML(). The issue is relevant where the process generating PDFs can read local files that should be restricted by K_ALLOWED_PATHS.

2

What does an attacker need to exploit it?

An attacker needs control over HTML passed to writeHTML(). They can use CSS url() values in list-style-image or img/bullet paths containing uppercase characters to reference local files outside the configured allowlist.

3

Is authentication or user interaction required?

No authentication or user interaction is required by the vulnerability itself. Exploitation depends on the attacker being able to supply HTML that the application renders with writeHTML().

4

How can I determine whether my deployment is affected?

Check whether the application uses composer/tecnickcom/tcpdf at a version from 7.0.0 through 7.0.19 and uses writeHTML() on untrusted or attacker-influenced HTML. Also review whether K_ALLOWED_PATHS is relied on to prevent access to local files during PDF generation.

5

What should be done if an upgrade cannot be applied immediately?

Do not render untrusted HTML with writeHTML(), or remove and reject CSS url() values and list-style-image or img/bullet paths from attacker-controlled content. Run PDF generation with access only to files that are safe to disclose, since referenced files may be copied into the temporary directory and embedded in generated PDFs.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203