CVE-2020-7763
JavaScript vulnerability analysis and mitigation

Overview

The vulnerability CVE-2020-7763 affects the phantom-html-to-pdf package and involves a path traversal issue that could allow unauthorized access to local files. The vulnerability was discovered and disclosed in 2020, impacting applications that use this HTML-to-PDF conversion library (GitHub Commit).

Technical details

The vulnerability stems from insufficient validation of file access requests in the phantom-html-to-pdf library. The issue specifically occurs in the resource request handling where the code failed to properly restrict access to local files. The original implementation only checked for 'file:///' protocol, which could be bypassed (GitHub Commit).

Impact

This vulnerability could allow attackers to access local files on the system where the application is running, potentially leading to unauthorized access to sensitive information or system files (GitHub Commit).

Exploitability

The vulnerability can be exploited by crafting specific HTML input that includes references to local files. The exploitation is possible when the allowLocalFilesAccess option is not explicitly set to false (GitHub Commit).

Mitigation and workarounds

The vulnerability has been fixed by implementing stricter protocol validation. The fix ensures that only 'http://' and 'https://' protocols are allowed by default, unless explicitly configured otherwise through the allowLocalFilesAccess option (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-77415CRITICAL9.3
  • JavaScript logoJavaScript
  • jsonata
NoYesAug 21, 2026
CVE-2026-77414CRITICAL9.3
  • JavaScript logoJavaScript
  • jsonata
NoYesAug 21, 2026
CVE-2026-77413CRITICAL9.3
  • JavaScript logoJavaScript
  • jsonata
NoYesAug 21, 2026
CVE-2026-63421HIGH7.5
  • JavaScript logoJavaScript
  • @keystone-6/core
NoYesAug 21, 2026
CVE-2026-53509MEDIUM5.7
  • JavaScript logoJavaScript
  • @aborruso/ckan-mcp-server
NoYesAug 21, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management