officeparser is vulnerable to Cross-Site Scripting (XSS)
59
Medium Risk
officeParser converts parsed document content into HTML, Markdown, CSV, RTF, and PDF output, but its generators do not consistently neutralize text, attribute, URL, and CSS values taken from the untrusted source document. An attacker who supplies a crafted document can inject active markup or scripts into generated HTML and Markdown, smuggle formula/DDE payloads into generated CSV cells, and abuse script-executing URL schemes. The Puppeteer-based PDF generator also lets the headless browser fetch arbitrary remote resources referenced by the document, enabling server-side request forgery against internal services and cloud metadata endpoints, and deeply nested or oversized input can exhaust CPU and memory. The fix routes all generator output through a centralized sanitizer, blocks remote resource loading during PDF rendering, and caps parser recursion and decompression against actual inflated size.
You are affected if you are using a version that falls within the vulnerable range and you convert or render untrusted documents into HTML, Markdown, CSV, or PDF output.
officeparser is vulnerable to Cross-Site Scripting (XSS) in versions 7.0.0 - 7.2.3.
Upgrade the officeparser library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant