Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. spipu/html2pdf
  4. ›
  5. CVE-2021-45394

CVE-2021-45394: Cross-site Scripting in HTML2PDF

January 18, 2022 (updated July 12, 2022)

An issue was discovered in Spipu HTML2PDF Attackers can trigger deserialization of arbitrary data via the injection of a malicious tag in the converted HTML document.

References

  • github.com/advisories/GHSA-6m93-343m-3jrc
  • github.com/spipu/html2pdf/blob/master/CHANGELOG.md
  • github.com/spipu/html2pdf/commit/100a4d509abf8550765cf0e0da83e83abb422585
  • github.com/spipu/html2pdf/commit/2e6bab9a2afe9cfd4d3c3038da64d8ad74e41d7f
  • github.com/spipu/html2pdf/releases/tag/v5.2.4
  • nvd.nist.gov/vuln/detail/CVE-2021-45394
  • www.synacktiv.com/sites/default/files/2022-01/html2pdf_ssrf_deserialization.pdf

Code Behaviors & Features

Detect and mitigate CVE-2021-45394 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 5.2.4

Fixed versions

  • 5.2.4

Solution

Upgrade to version 5.2.4 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-918: Server-Side Request Forgery (SSRF)

Source file

packagist/spipu/html2pdf/CVE-2021-45394.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:33 +0000.