{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.0.0"
                  },
                  {
                    "fixed": "7.0.20"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "c8834161b905b21bd8dcc0df6284e0132c5efa05"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "7.0.20",
                "range": [
                  {
                    "fixed": "c8834161b905b21bd8dcc0df6284e0132c5efa05"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "4fc5a31959906041a62a6b0ccb47c73bb99a0379"
            },
            {
              "fixed": "c8834161b905b21bd8dcc0df6284e0132c5efa05"
            }
          ],
          "repo": "https://github.com/tecnickcom/tcpdf",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-22"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142210.json"
  },
  "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.",
  "id": "CVE-2026-142210",
  "modified": "2026-12-02T17:45:21.008997185Z",
  "published": "2026-12-02T16:50:36.665Z",
  "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"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "TCPDF 7.0.0 before 7.0.20 Local File Allowlist Bypass via writeHTML() CSS url()"
}