Server-side Request Forgery (SSRF) Affecting spipu/html2pdf package, versions <5.2.4


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.45% (76th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Server-side Request Forgery (SSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-SPIPUHTML2PDF-2342415
  • published18 Jan 2022
  • disclosed18 Jan 2022
  • creditClément Amic and Antoine Gicquel

Introduced: 18 Jan 2022

CVE-2021-45394  (opens in a new tab)
CWE-502  (opens in a new tab)
CWE-918  (opens in a new tab)

How to fix?

Upgrade spipu/html2pdf to version 5.2.4 or higher.

Overview

spipu/html2pdf is a HTML to PDF converter written in PHP5 (it uses TCPDF). OFFICIAL PACKAGE

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF). An attacker can trigger SSRF and deserialization of arbitrary data via the injection of a malicious <link> tag in the converted HTML document.

CVSS Scores

version 3.1