CVE-2026-16633: Cross-site scripting in Mozilla PDF.js and ngx-extended-pdf-viewer
CVE-2026-16633 is a client-side JavaScript execution vulnerability in Mozilla PDF.js, distributed through pdfjs-dist and bundled into ngx-extended-pdf-viewer. Opening a malicious PDF can execute attacker-controlled JavaScript in the hosting application's origin. The XFA processing path contains improper character encoding in escapePDFName and incorrect surrogate-pair handling in encodeToXmlString. Missing zero-padding for encoded control characters and mishandling of BMP non-characters can alter serialized output, bypass sanitization, and permit script injection. Exposure includes XFA rich-text processing when enableXfa is enabled and a separate sandbox-related path when enableScripting is enabled, subject to Content Security Policy restrictions. Affected ngx-extended-pdf-viewer releases range from 27.0.0-rc.0 through versions before 29.0.0-rc.3.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation permits arbitrary JavaScript execution in the victim's browser under the hosting application's origin. An attacker can access JavaScript-readable session cookies, local storage, application data, and API credentials exposed to that browser context, and issue authenticated application or internal API requests with the victim's permissions. This can compromise session confidentiality and application integrity. The described execution is browser-side and does not establish native or server-side code execution.
Mitigation
If you can’t patch tonight, do this now.
Where upgrades cannot be applied immediately, disable XFA parsing by setting pdfDefaultOptions.enableXfa = false if XFA forms are unnecessary. Disable enableScripting to reduce exposure through the scripting-related path. These settings address distinct paths; disabling scripting alone should not be assumed to eliminate XFA exposure. Enforce a restrictive Content Security Policy that blocks inline and other unauthorized script execution.
Remediation
Patch, then assume compromise.
Upgrade pdfjs-dist to version 6.2.108 or later. Applications using ngx-extended-pdf-viewer should upgrade to version 29.0.0-rc.3 or later, which incorporates the PDF.js fixes into both stable and bleeding-edge engines. Update bundled viewer dependencies rather than assuming that upgrading a separately installed pdfjs-dist package replaces an embedded PDF.js fork.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2026-16633 exploited in the wild?
- As of Nov 19, 2026, Mallory has no reports of CVE-2026-16633 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-16633?
- As of Nov 19, 2026, Mallory has found no public exploit for CVE-2026-16633.
- Is there a patch for CVE-2026-16633?
- Upgrade pdfjs-dist to version 6.2.108 or later. Applications using ngx-extended-pdf-viewer should upgrade to version 29.0.0-rc.3 or later, which incorporates the PDF.js fixes into both stable and bleeding-edge engines.
Recent activity
8 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.