CVE-2026-142210
MEDIUM 6.9CVSS 4.0TCPDF 7.0.0 before 7.0.20 Local File Allowlist Bypass via writeHTML() CSS url()
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.
- Published
- 2 Dec 2026
- Last modified
- 3 Dec 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Received
- Weakness
- CWE-22
- Sources
- NVDJSONCVE ListJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 4.0 | MEDIUM 6.9 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| CVE List | VulnCheck | CVSS 4.0 | MEDIUM 6.9 | 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 |
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| CVE List | VulnCheck | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| CVE List | CISA-ADP | SSVC | Exploitation: none; Automatable: yes; Technical Impact: partial |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | tecnickcom | TCPDF | >= 7.0.0, < 7.0.20 | 7.0.20 |
References
- https://github.com/tecnickcom/TCPDF/blob/7.0.19/tcpdf.php#L7525-L7539 · technical-description
- https://github.com/tecnickcom/TCPDF/commit/c8834161b905b21bd8dcc0df6284e0132c5efa05 · patch
- https://github.com/tecnickcom/TCPDF/releases/tag/7.0.20 · release-notes
- https://www.vulncheck.com/advisories/tcpdf-7.0.0-before-7.0.20-local-file-allowlist-bypass-via-writehtml-css-url · third-party-advisory
History
- 3 Dec 2026 17:56 UTC · NVD: updated (other details)
- 3 Dec 2026 16:56 UTC · CVE List: updated (other details)
- 2 Dec 2026 17:35 UTC · NVD: first stored (published 2 Dec 2026)
- 2 Dec 2026 16:57 UTC · CVE List: first stored (published 2 Dec 2026)