pdf2html is vulnerable to Cross-site Scripting (XSS)
88
High Risk
Affected versions of this package are vulnerable to Cross-Site Scripting (XSS) due to improper sanitization of HTML content in the extractPages function. The function used to extract .page elements returns either raw HTML or text without sanitizing user-supplied input, allowing attackers to inject malicious scripts. An attacker could exploit this vulnerability by crafting a payload within a .page element, which would then be rendered unsanitized in the browser, allowing arbitrary JavaScript to execute in the context of the victim's session. It could lead to session hijacking, data theft, or other malicious actions.
You are affected if you are using a version that falls within the vulnerable range.
pdf2html is vulnerable to Cross-site Scripting (XSS) in versions 4.0.0 - 4.3.0.
Upgrade the pdf2html library to a patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant