Skip to content
Medium 6.9

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

CVE-2026-142210 First seen on SecPulse

Summary

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 upper...

Affected packages

PackageAffected → Fixed
tecnickcomTCPDF
≥ 7.0.0, < 7.0.20→ 7.0.20
Original description The description as published by the source.

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.

Source: CVE.org (CVE Program・cvelistV5) NVD

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details