{"id":"CVE-2026-142210","summary":"TCPDF 7.0.0 before 7.0.20 Local File Allowlist Bypass via writeHTML() CSS url()","details":"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.","modified":"2026-12-02T18:00:47.265136151Z","published":"2026-12-02T16:50:36.665Z","database_specific":{"cwe_ids":["CWE-22"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142210.json","cna_assigner":"VulnCheck"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142210.json"},{"type":"PACKAGE","url":"https://github.com/tecnickcom/TCPDF"},{"type":"ARTICLE","url":"https://github.com/tecnickcom/TCPDF/blob/7.0.19/tcpdf.php#L7525-L7539"},{"type":"FIX","url":"https://github.com/tecnickcom/TCPDF/commit/c8834161b905b21bd8dcc0df6284e0132c5efa05"},{"type":"ADVISORY","url":"https://github.com/tecnickcom/TCPDF/releases/tag/7.0.20"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142210"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/tcpdf-7.0.0-before-7.0.20-local-file-allowlist-bypass-via-writehtml-css-url"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/tecnickcom/tcpdf","events":[{"introduced":"4fc5a31959906041a62a6b0ccb47c73bb99a0379"},{"fixed":"c8834161b905b21bd8dcc0df6284e0132c5efa05"}],"database_specific":{"extracted_events":[{"strategy":"StandardRange","range":[{"introduced":"7.0.0"},{"fixed":"7.0.20"}],"source":"AFFECTED_FIELD"},{"range":[{"fixed":"c8834161b905b21bd8dcc0df6284e0132c5efa05"}],"source":"REFERENCES_COMMIT"},{"source":"REFERENCES_TAG","original_tag":"7.0.20","range":[{"fixed":"c8834161b905b21bd8dcc0df6284e0132c5efa05"}]}]}}],"versions":["7.0.19","7.0.18","7.0.17","7.0.16","7.0.15","7.0.13","7.0.12","7.0.11","7.0.10","7.0.9","7.0.8","7.0.7","7.0.6","7.0.5","7.0.4","7.0.3","7.0.2","7.0.1","7.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142210.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}