{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/83358?format=json","vulnerability_id":"VCID-q9n5-qcc8-mfac","summary":"html2pdf.js converts any webpage or element into a printable PDF entirely client-side. Prior to 0.14.0, 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. This vulnerability has been fixed in html2pdf.js@0.14.0.","aliases":[{"alias":"CVE-2026-22787"},{"alias":"GHSA-w8x4-x68c-m6fc"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/37749?format=json","purl":"pkg:npm/html2pdf.js@0.14.0","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/html2pdf.js@0.14.0"}],"affected_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/922753?format=json","purl":"pkg:npm/html2pdf.js@0.8.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-q9n5-qcc8-mfac"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/html2pdf.js@0.8.0"},{"url":"http://public2.vulnerablecode.io/api/packages/922754?format=json","purl":"pkg:npm/html2pdf.js@0.8.2","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-q9n5-qcc8-mfac"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/html2pdf.js@0.8.2"},{"url":"http://public2.vulnerablecode.io/api/packages/922755?format=json","purl":"pkg:npm/html2pdf.js@0.9.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-q9n5-qcc8-mfac"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/html2pdf.js@0.9.0"},{"url":"http://public2.vulnerablecode.io/api/packages/922756?format=json","purl":"pkg:npm/html2pdf.js@0.9.1","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-q9n5-qcc8-mfac"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/html2pdf.js@0.9.1"},{"url":"http://public2.vulnerablecode.io/api/packages/922757?format=json","purl":"pkg:npm/html2pdf.js@0.9.2","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-q9n5-qcc8-mfac"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/html2pdf.js@0.9.2"},{"url":"http://public2.vulnerablecode.io/api/packages/922758?format=json","purl":"pkg:npm/html2pdf.js@0.9.3","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-q9n5-qcc8-mfac"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/html2pdf.js@0.9.3"},{"url":"http://public2.vulnerablecode.io/api/packages/922759?format=json","purl":"pkg:npm/html2pdf.js@0.10.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-q9n5-qcc8-mfac"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/html2pdf.js@0.10.0"},{"url":"http://public2.vulnerablecode.io/api/packages/922760?format=json","purl":"pkg:npm/html2pdf.js@0.10.1","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-q9n5-qcc8-mfac"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/html2pdf.js@0.10.1"},{"url":"http://public2.vulnerablecode.io/api/packages/922761?format=json","purl":"pkg:npm/html2pdf.js@0.10.2","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-q9n5-qcc8-mfac"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/html2pdf.js@0.10.2"},{"url":"http://public2.vulnerablecode.io/api/packages/922762?format=json","purl":"pkg:npm/html2pdf.js@0.10.3","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-q9n5-qcc8-mfac"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/html2pdf.js@0.10.3"},{"url":"http://public2.vulnerablecode.io/api/packages/922763?format=json","purl":"pkg:npm/html2pdf.js@0.11.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-q9n5-qcc8-mfac"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/html2pdf.js@0.11.0"},{"url":"http://public2.vulnerablecode.io/api/packages/922764?format=json","purl":"pkg:npm/html2pdf.js@0.11.1","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-q9n5-qcc8-mfac"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/html2pdf.js@0.11.1"},{"url":"http://public2.vulnerablecode.io/api/packages/922765?format=json","purl":"pkg:npm/html2pdf.js@0.11.2","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-q9n5-qcc8-mfac"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/html2pdf.js@0.11.2"},{"url":"http://public2.vulnerablecode.io/api/packages/922766?format=json","purl":"pkg:npm/html2pdf.js@0.11.3","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-q9n5-qcc8-mfac"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/html2pdf.js@0.11.3"},{"url":"http://public2.vulnerablecode.io/api/packages/922767?format=json","purl":"pkg:npm/html2pdf.js@0.12.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-q9n5-qcc8-mfac"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/html2pdf.js@0.12.0"},{"url":"http://public2.vulnerablecode.io/api/packages/922768?format=json","purl":"pkg:npm/html2pdf.js@0.12.1","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-q9n5-qcc8-mfac"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/html2pdf.js@0.12.1"},{"url":"http://public2.vulnerablecode.io/api/packages/922769?format=json","purl":"pkg:npm/html2pdf.js@0.13.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-q9n5-qcc8-mfac"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/html2pdf.js@0.13.0"}],"references":[{"reference_url":"https://api.first.org/data/v1/epss?cve=CVE-2026-22787","reference_id":"","reference_type":"","scores":[{"value":"0.00032","scoring_system":"epss","scoring_elements":"0.09964","published_at":"2026-06-14T12:55:00Z"},{"value":"0.00032","scoring_system":"epss","scoring_elements":"0.09978","published_at":"2026-06-13T12:55:00Z"},{"value":"0.00034","scoring_system":"epss","scoring_elements":"0.10388","published_at":"2026-06-12T12:55:00Z"},{"value":"0.00058","scoring_system":"epss","scoring_elements":"0.18339","published_at":"2026-06-11T12:55:00Z"}],"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-22787"},{"reference_url":"https://github.com/eKoopmans/html2pdf.js","reference_id":"","reference_type":"","scores":[{"value":"8.7","scoring_system":"cvssv4","scoring_elements":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/eKoopmans/html2pdf.js"},{"reference_url":"https://github.com/eKoopmans/html2pdf.js/issues/865","reference_id":"865","reference_type":"","scores":[{"value":"8.7","scoring_system":"cvssv4","scoring_elements":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2026-01-14T21:02:44Z/"}],"url":"https://github.com/eKoopmans/html2pdf.js/issues/865"},{"reference_url":"https://github.com/eKoopmans/html2pdf.js/pull/877","reference_id":"877","reference_type":"","scores":[{"value":"8.7","scoring_system":"cvssv4","scoring_elements":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2026-01-14T21:02:44Z/"}],"url":"https://github.com/eKoopmans/html2pdf.js/pull/877"},{"reference_url":"https://github.com/eKoopmans/html2pdf.js/commit/988826e336035b39a8608182d7b73c0e3cd78c7b","reference_id":"988826e336035b39a8608182d7b73c0e3cd78c7b","reference_type":"","scores":[{"value":"8.7","scoring_system":"cvssv4","scoring_elements":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2026-01-14T21:02:44Z/"}],"url":"https://github.com/eKoopmans/html2pdf.js/commit/988826e336035b39a8608182d7b73c0e3cd78c7b"},{"reference_url":"https://nvd.nist.gov/vuln/detail/CVE-2026-22787","reference_id":"CVE-2026-22787","reference_type":"","scores":[{"value":"8.7","scoring_system":"cvssv4","scoring_elements":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-22787"},{"reference_url":"https://aydinnyunus.github.io/2026/01/17/cve-2026-22787-html2pdf-xss-vulnerability","reference_id":"CVE-2026-22787-HTML2PDF-XSS-VULNERABILITY","reference_type":"","scores":[{"value":"8.7","scoring_system":"cvssv4","scoring_elements":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://aydinnyunus.github.io/2026/01/17/cve-2026-22787-html2pdf-xss-vulnerability"},{"reference_url":"https://github.com/advisories/GHSA-w8x4-x68c-m6fc","reference_id":"GHSA-w8x4-x68c-m6fc","reference_type":"","scores":[{"value":"HIGH","scoring_system":"cvssv3.1_qr","scoring_elements":""}],"url":"https://github.com/advisories/GHSA-w8x4-x68c-m6fc"},{"reference_url":"https://github.com/eKoopmans/html2pdf.js/security/advisories/GHSA-w8x4-x68c-m6fc","reference_id":"GHSA-w8x4-x68c-m6fc","reference_type":"","scores":[{"value":"HIGH","scoring_system":"cvssv3.1_qr","scoring_elements":""},{"value":"8.7","scoring_system":"cvssv4","scoring_elements":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2026-01-14T21:02:44Z/"}],"url":"https://github.com/eKoopmans/html2pdf.js/security/advisories/GHSA-w8x4-x68c-m6fc"},{"reference_url":"https://github.com/eKoopmans/html2pdf.js/releases/tag/v0.14.0","reference_id":"v0.14.0","reference_type":"","scores":[{"value":"8.7","scoring_system":"cvssv4","scoring_elements":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2026-01-14T21:02:44Z/"}],"url":"https://github.com/eKoopmans/html2pdf.js/releases/tag/v0.14.0"}],"weaknesses":[{"cwe_id":79,"name":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","description":"The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users."},{"cwe_id":937,"name":"OWASP Top Ten 2013 Category A9 - Using Components with Known Vulnerabilities","description":"Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2013."},{"cwe_id":1035,"name":"OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities","description":"Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2017."}],"exploits":[],"severity_range_score":"7.0 - 8.9","exploitability":"0.5","weighted_severity":"8.0","risk_score":4.0,"resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-q9n5-qcc8-mfac"}