Invoices, delivery notes, quotations and other business forms. Once the PDF generation part of a PHP business system or e-commerce site starts working, it tends to be used for a long time without changes. TCPDF, which has served as the foundation for this, has now stated explicitly that it will no longer release security fixes for 6.x.
SECURITY.md in the TCPDF repository states that 6.x is "deprecated, not maintained, and does not receive security fixes." The last 6.x release is 6.11.4, from August 28. Meanwhile, 7.x, released on June 18, was rebuilt as a "compatibility layer (facade)" that keeps TCPDF's function names but hands PDF generation to its successor library, tc-lib-pdf. 7.0.27 was released on November 29 (dates in this article are in Coordinated Universal Time, as recorded by Packagist and similar sources; 7.0.27 was November 30 in Japan time).
On November 2, advisory GHSA-w76r-cf73-c2vx was published in the repository for an issue in 6.x and earlier where redirect destinations are not checked when loading images and other resources from URLs (SSRF). The advisory gives upgrading to 7.0.0 or later as the remedy, with no fix for 6.x.
However, 7.x is not a drop-in replacement for 6.x. Based on documents in the TCPDF repository, changes in EC-CUBE's development branch, and the results of running 6.11.4 and 7.0.27 in our test environment, this article summarizes what systems that continue to use 6.x need to decide.
Where 6.x, 7.x and tc-lib-pdf stand
TCPDF's SECURITY.md (7.0.27) describes the status of each version as follows.
| Release | Security fixes | Positioning |
|---|---|---|
| 7.x | Maintenance only | Deprecated. Only security and critical compatibility fixes; no new features |
| 6.x | None | Deprecated and not maintained |
| Before 6.x | None | End of life |
The same document asks users to "treat all versions of TCPDF as a starting point for migration, not as a migration target," and names tc-lib-pdf as the successor. The README also advises using tc-lib-pdf for new systems and migrating existing users step by step. The successor, tc-lib-pdf, is a stable release with 8.88.0 published on November 29, and requires PHP 8.2 or later.
The notices about 6.x became stronger in stages. The README for 6.11.3 on April 21 described 6.x as "deprecated, maintenance only." The README for 6.11.4 on August 28 states that 6.x "receives no new features, bug fixes or security fixes." SECURITY.md states that vulnerability reports for 6.x and earlier are not accepted and that no fixes will be released for 6.x. On Packagist, however, while the package description says "Deprecated," the package is not marked as abandoned. As a result, Composer does not warn about it as an abandoned package.
In practice, fixes continue in 7.x. 7.0.20 on October 24, labeled "fix(security)," fixed issues including one where writeHTML() copied files referenced by CSS url() into a temporary directory. Another issue fixed in the same version, where the mask path in Image() bypassed the file allowlist, was published on November 2 as advisory GHSA-23pv-393w-4478 (medium severity).
In 6.11.4, creating the TCPDF class now emits a E_USER_DEPRECATED notice once per process. In our test environment, we confirmed this notice each time we generated a PDF with 6.11.4. According to the README, the notice does not get mixed into the PDF output, but it does reach custom error handlers and mechanisms that collect deprecation notices. To suppress it, define TCPDF_SILENCE_DEPRECATION before loading the library.
No fixes for 6.x advisories
GHSA-w76r-cf73-c2vx (medium severity), published on November 2, is an issue where Image(), ImageSVG(), writeHTML() and font loading in 6.x and earlier fetch resources without checking the redirect destination of the supplied URL. According to the advisory, even if the app checks the host of the initial URL, the redirect can reach internal addresses or cloud metadata endpoints. If the response can be read as an image or SVG, its contents are embedded in the PDF.
The remedy is to upgrade to 7.0.0 or later; there is no fix for 6.x. As workarounds if you cannot upgrade right away, the advisory lists the following.
- Do not pass externally supplied URLs or paths to
Image(),ImageSVG(),writeHTML()or font loading - Run PDF generation in a process that cannot make outbound connections
- Set
open_basedir(this disables cURL's redirect-following setting, but does not apply to the path used whenallow_url_fopenis enabled) - Disable
allow_url_fopen
As of November 30, GHSA-w76r-cf73-c2vx and GHSA-23pv-393w-4478 are not listed in the GitHub Advisory Database. A Packagist advisory lookup for TCPDF also returned only 8 advisories, all from 2024 or earlier. composer audit does not report this issue for 6.11.4.
The next EC-CUBE version has moved to FPDF
EC-CUBE, used by e-commerce sites in Japan, has used TCPDF for its feature that outputs delivery note PDFs from the admin panel. In the 4.3 branch, OrderPdfService, which generates delivery notes, extends FPDI's TCPDF bridge (setasign\Fpdi\Tcpdf\Fpdi). composer.json specifies "tecnickcom/tcpdf": "^6.2", and the lock file installs 6.11.2. With this constraint, it will not be upgraded to 7.x.
In the 4.4 branch for the next version, the August 28 change "Migrate the delivery note PDF engine from TCPDF to FPDF" removed the dependency on TCPDF. The description of the change gives the following reasons.
- TCPDF was deprecated in 7.0.0 and replaced by a compatibility layer over tc-lib-pdf
- In 7.x, the "TCPDF bridge" of setasign/fpdi, a library for importing existing PDFs, does not work, which breaks delivery notes
- tc-lib-pdf adds 14 dependency packages and requires ext-bcmath. FPDF + FPDI stays at 2 packages and needs no additional extensions
However, as of November 30, ext-bcmath is not required in the composer.json of tc-lib-pdf 8.88.0 and its dependencies. tc-lib-barcode moved ext-bcmath from required to suggested (suggest) starting with 2.13.0 on August 6.
The change also records that 15 output templates were compared pixel by pixel at 150 dpi, with differences limited to 3 points. On Packagist, TCPDF has been removed from the dependencies of 4.4.0-alpha-1 (September 25).
FPDI's TCPDF bridge (src/Tcpdf/Fpdi.php in 2.6.10) extends \TCPDF and calls or overrides 6.x internal functions such as _out(), _newobj(), setBuffer() and _putxobjects(). When we examined tcpdf.php in 6.11.4 and 7.0.27 in our test environment, these eight functions existed in 6.11.4 but not in 7.0.27. FPDI's composer.json also specifies the TCPDF used for testing as ^6.8.
Results of running 6.11.4 and 7.0.27 in our test environment
Using PHP 8.3.6 and Composer 2.8.12, we installed 6.11.4 and 7.0.27 separately into empty projects and generated a test PDF in the form of an invoice (with Japanese headings and a table).

- 6.11.4: PDFs were output in all four cases: the built-in Japanese CID font (
kozminproregular), IPAexGothic converted with 6.x'saddTTFfont(), an image in a temporary directory (/tmp) read via<img>inwriteHTML(), and importing an existing PDF with FPDI - 7.0.27: With only
composer requiredone, every case stopped with theunable to read file: helvetica.jsonexception. 7.x generates font assets at install time, and the README lists this exception as the symptom of forgetting to generate the assets
How to generate the assets is described differently depending on the source. The 7.0.27 README instructs you to run the Makefile included in the dependency package tc-lib-pdf-font (make -C vendor/tecnickcom/tc-lib-pdf-font deps fonts). The font documentation on tcpdf.org (updated November 21) instructs you to run a PHP script in the same package (php vendor/tecnickcom/tc-lib-pdf-font/util/build_fonts.php), and states that make is not needed but a network connection is. In this test, we did not generate the assets with either method. As a result, we have not confirmed the results of outputting a Japanese PDF with 7.0.27.
Incompatibilities to know before upgrading to 7.x
The "Breaking Changes" section of the 7.0.27 README lists the following as intentional changes. We have picked out the ones that may affect business forms.
- Fonts: Fonts in the 6.x format (
fontname.php+fontname.z) cannot be used. Japanese fonts that you converted withaddTTFfont()and placed in the project need to be reconverted from the original TTF or OTF files using the tc-lib-pdf-font method - Generating font assets: If you install it as a dependency, you need to add the generation step to
scriptsin your own project'scomposer.json. According to tcpdf.org, generated assets are deleted when you update or reinstall the package with Composer. Also check that thevendor/you deploy to production includes the assets, and that your build environment can make the network connections needed for generation - Readable locations: Local files can only be read from allowed locations. Files referenced from HTML or CSS do not include the temporary directory. Loading images from URLs is disabled by default; list allowed hostnames in
K_ALLOWED_HOSTS - EPS and AI images: These can no longer be read. Convert them to SVG and use
ImageSVG() - Requirements: PHP 8.2 or later and ext-curl are required
Code that reads images from a temporary directory with <img>, or that loads a logo from a URL, may work in 6.11.4 but may not be readable in 7.x without changing settings (our editorial reading of the README; not tested on 7.0.27).
If you use TCPDF through a wrapper, also check the wrapper's support. For example, the latest version of elibyy/tcpdf-laravel for Laravel, 13.0.1 (March 12), constrains TCPDF in composer.json to the range 6.2 to 6.11 (plus the development version dev-main), so stable 7.x will not be installed. The latest FPDI release, 2.6.10 (November 9), also still uses 6.x as the TCPDF for testing.
How to choose a migration path (editorial recommendation)
Systems that use TCPDF should choose one of the following three options.
- Upgrade to TCPDF 7.x: Because the function names are the same, few calls need rewriting. In exchange, you need to rebuild fonts, add an asset generation step, and configure readable locations. If you combine it with FPDI, this option is not available because the internal functions above are missing
- Move to tc-lib-pdf: This is the successor recommended by the developer. Because the calling style changes, the part that builds PDFs has to be rewritten
- Move to FPDF (+ FPDI) or similar: This is the approach taken by EC-CUBE's 4.4 development branch. You will have to handle Japanese character widths and coordinate adjustments yourself
Whichever you choose, save the business form PDFs you currently produce as samples before migrating, so you can compare them side by side with the output after migration. For EC-CUBE 4.3 sites, since 4.3 assumes 6.x, check how the next EC-CUBE version handles this before deciding. We also covered dependency fixes related to EC-CUBE in our article on Symfony's November fixes. Precautions for updating Composer dependencies are covered in our Composer 2.11.3 article.
Scope of verification
On November 30, 2026, we reviewed the tecnickcom/TCPDF repository (
README.md,SECURITY.mdandCHANGELOG.TXTat tags 6.11.3, 6.11.4, 7.0.0, 7.0.20 and 7.0.27, and advisories GHSA-w76r-cf73-c2vx and GHSA-23pv-393w-4478), the results of advisory lookups in the GitHub Advisory Database and Packagist, the font documentation on tcpdf.org, Packagist publication times and dependencies (tecnickcom/tcpdf, tc-lib-pdf 8.88.0 and its dependencies, and elibyy/tcpdf-laravel 13.0.1),composer.jsonandcomposer.lockin the 4.3 and 4.4 branches of EC-CUBE/ec-cube and the description of commit 1d1a8f20b, andcomposer.jsonandsrc/Tcpdf/Fpdi.phpin setasign/fpdi 2.6.10 (desk research). On the same day, we also installed TCPDF 6.11.4 and 7.0.27 and setasign/fpdi 2.6.10 with PHP 8.3.6 and Composer 2.8.12 and generated test PDFs (hands-on testing; the scripts and output are saved in the article's evidence records). We did not run font asset generation for 7.0.27 or the subsequent output (Japanese fonts, image loading and FPDI). We did not test output with EC-CUBE itself, tc-lib-pdf, FPDF or the Laravel wrapper. We have not checked when the two advisories will be listed in the GitHub Advisory Database.
For migrating business forms in PHP business systems or e-commerce sites, or for updating dependency libraries, please contact us through Development, AI and automation consultation.
References
- tecnickcom/TCPDF — GHSA-w76r-cf73-c2vx (redirect destinations not checked in 6.x and earlier)
- tecnickcom/TCPDF — GHSA-23pv-393w-4478 (mask path issue fixed in 7.0.20)
- tecnickcom/TCPDF — SECURITY.md (7.0.27 version)
- tecnickcom/TCPDF — README.md (7.0.27 version; Deprecation Notice and Breaking Changes)
- tecnickcom/TCPDF — README.md and SECURITY.md (6.11.4 version)
- tecnickcom/TCPDF — README.md (6.11.3 version)
- tecnickcom/TCPDF — CHANGELOG.TXT (7.0.20 through 7.0.23)
- TCPDF — Font documentation (tcpdf.org)
- tecnickcom/tcpdf (Packagist page)
- tecnickcom/tc-lib-pdf (Packagist page)
- tecnickcom/tc-lib-barcode — composer.json (2.13.0 version)
- EC-CUBE/ec-cube — Migrate the delivery note PDF engine from TCPDF to FPDF (4.4, 1d1a8f20b)
- EC-CUBE/ec-cube — composer.json (4.3 branch)
- setasign/fpdi — src/Tcpdf/Fpdi.php
- elibyy/tcpdf-laravel — composer.json (13.0.1 version)









