Skip to content

Update dependency html2pdf.js to ^0.14.0 [SECURITY]#44

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/npm-html2pdf.js-vulnerability
Open

Update dependency html2pdf.js to ^0.14.0 [SECURITY]#44
renovate[bot] wants to merge 1 commit intomainfrom
renovate/npm-html2pdf.js-vulnerability

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Jan 14, 2026

This PR contains the following updates:

Package Change Age Confidence
html2pdf.js (source) ^0.9.3^0.14.0 age confidence

GitHub Vulnerability Alerts

CVE-2026-22787

Impact

html2pdf.js contains a cross-site scripting (XSS) vulnerability when given a text source rather than an element. This text is not sufficiently sanitized before being attached to the DOM, allowing malicious scripts to be run on the client browser and risking the confidentiality, integrity, and availability of the page's data.

Example attack vector:

import html2pdf from 'html2pdf.js/src/index.js';

const maliciousHTML = '<img src=x onerror="alert(document.cookie)">';
html2pdf(maliciousHTML);
// or html2pdf().from(maliciousHTML);

Patches

This vulnerability has been fixed in html2pdf.js@0.14.0 to sanitize text sources using DOMPurify. There are no other breaking changes in this version.

Workarounds

Users of earlier versions of html2pdf.js must safely sanitize any text before using it as a source in html2pdf.js.

References


Release Notes

eKoopmans/html2pdf.js (html2pdf.js)

v0.14.0

Compare Source

Features

v0.13.0

Compare Source

Features

v0.12.1

Compare Source

Bug Fixes

v0.12.0

Compare Source

Features

v0.11.3

Compare Source

Bug Fixes

v0.11.2

Compare Source

Bug Fixes

v0.11.1

Compare Source

Bug Fixes
  • Add delay to ensure content is rendered before capturing (#​770) (32d006f)

v0.11.0

Compare Source

Features

v0.10.3

Compare Source

Bug Fixes

v0.10.2

Compare Source

Bug Fixes

v0.10.1

Compare Source

v0.10.0

Compare Source


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • ""
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@vercel
Copy link
Copy Markdown

vercel bot commented Jan 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
portfolio Ready Ready Preview, Comment Mar 30, 2026 6:06pm

@renovate renovate bot force-pushed the renovate/npm-html2pdf.js-vulnerability branch from 97b9297 to 006d9f1 Compare January 23, 2026 19:41
@renovate renovate bot force-pushed the renovate/npm-html2pdf.js-vulnerability branch from 006d9f1 to 5a33380 Compare February 2, 2026 18:49
@renovate renovate bot force-pushed the renovate/npm-html2pdf.js-vulnerability branch from 5a33380 to e750a34 Compare February 12, 2026 16:42
@renovate renovate bot force-pushed the renovate/npm-html2pdf.js-vulnerability branch from e750a34 to 72b1bf0 Compare March 5, 2026 17:01
@renovate renovate bot force-pushed the renovate/npm-html2pdf.js-vulnerability branch from 72b1bf0 to 4ad51c0 Compare March 13, 2026 11:35
@renovate renovate bot changed the title Update dependency html2pdf.js to ^0.14.0 [SECURITY] Update dependency html2pdf.js to ^0.14.0 [SECURITY] - autoclosed Mar 27, 2026
@renovate renovate bot closed this Mar 27, 2026
@renovate renovate bot deleted the renovate/npm-html2pdf.js-vulnerability branch March 27, 2026 01:56
@renovate renovate bot changed the title Update dependency html2pdf.js to ^0.14.0 [SECURITY] - autoclosed Update dependency html2pdf.js to ^0.14.0 [SECURITY] Mar 30, 2026
@renovate renovate bot reopened this Mar 30, 2026
@renovate renovate bot force-pushed the renovate/npm-html2pdf.js-vulnerability branch 2 times, most recently from 4ad51c0 to d1e3942 Compare March 30, 2026 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants