ngx-extended-pdf-viewer bundles a version of pdf.js vulnerable to CVE-2026-16633
ngx-extended-pdf-viewer includes a forked version of Mozilla's pdf.js that is vulnerable to CVE-2026-16633. This vulnerability allows execution of attacker-controlled JavaScript when opening a malicious PDF, potentially impacting the hosting page. The default configuration reduces exposure compared to upstream pdf.js, but enabling XFA forms (enabled by default) still presents risk. A patch is available from version 29.0.0-rc.3, which backports the upstream fix. Workarounds include disabling XFA forms or applying a Content Security Policy to block inline scripts.
AI Analysis
Technical Summary
ngx-extended-pdf-viewer bundles a fork of pdf.js that contains a vulnerability identified as CVE-2026-16633. This vulnerability enables execution of attacker-controlled JavaScript in the context of the hosting page when a malicious PDF is opened. The issue involves two parts: one related to sandboxing requiring enableScripting (disabled by default in ngx-extended-pdf-viewer), and another related to XFA rich text processing, which is enabled by default and can be exploited. The vulnerability is addressed in version 29.0.0-rc.3 by cherry-picking Mozilla's fix from pdf.js 6.2.108. The package now includes SBOM and VEX files to verify the fix. Workarounds include disabling XFA forms and enforcing a strict Content Security Policy.
Potential Impact
An attacker can execute arbitrary JavaScript within the context of the hosting page by tricking a user into opening a crafted malicious PDF. This can lead to high-impact client-side attacks such as cross-site scripting or data theft. The default configuration of ngx-extended-pdf-viewer reduces exposure by disabling scripting, but enabling XFA forms (default enabled) still exposes users to risk. There are no known exploits in the wild at this time.
Mitigation Recommendations
A patch is available starting with ngx-extended-pdf-viewer version 29.0.0-rc.3, which includes the upstream fix from pdf.js 6.2.108. Users should upgrade to this version or later to remediate the vulnerability. If upgrading is not immediately possible, mitigate risk by setting pdfDefaultOptions.enableXfa to false if XFA forms are not required, and/or enforce a Content Security Policy that disallows inline scripts. The package provides SBOM and VEX files from version 29.0.0 to verify the applied fix.
ngx-extended-pdf-viewer bundles a version of pdf.js vulnerable to CVE-2026-16633
Description
ngx-extended-pdf-viewer includes a forked version of Mozilla's pdf.js that is vulnerable to CVE-2026-16633. This vulnerability allows execution of attacker-controlled JavaScript when opening a malicious PDF, potentially impacting the hosting page. The default configuration reduces exposure compared to upstream pdf.js, but enabling XFA forms (enabled by default) still presents risk. A patch is available from version 29.0.0-rc.3, which backports the upstream fix. Workarounds include disabling XFA forms or applying a Content Security Policy to block inline scripts.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
ngx-extended-pdf-viewer bundles a fork of pdf.js that contains a vulnerability identified as CVE-2026-16633. This vulnerability enables execution of attacker-controlled JavaScript in the context of the hosting page when a malicious PDF is opened. The issue involves two parts: one related to sandboxing requiring enableScripting (disabled by default in ngx-extended-pdf-viewer), and another related to XFA rich text processing, which is enabled by default and can be exploited. The vulnerability is addressed in version 29.0.0-rc.3 by cherry-picking Mozilla's fix from pdf.js 6.2.108. The package now includes SBOM and VEX files to verify the fix. Workarounds include disabling XFA forms and enforcing a strict Content Security Policy.
Potential Impact
An attacker can execute arbitrary JavaScript within the context of the hosting page by tricking a user into opening a crafted malicious PDF. This can lead to high-impact client-side attacks such as cross-site scripting or data theft. The default configuration of ngx-extended-pdf-viewer reduces exposure by disabling scripting, but enabling XFA forms (default enabled) still exposes users to risk. There are no known exploits in the wild at this time.
Mitigation Recommendations
A patch is available starting with ngx-extended-pdf-viewer version 29.0.0-rc.3, which includes the upstream fix from pdf.js 6.2.108. Users should upgrade to this version or later to remediate the vulnerability. If upgrading is not immediately possible, mitigate risk by setting pdfDefaultOptions.enableXfa to false if XFA forms are not required, and/or enforce a Content Security Policy that disallows inline scripts. The package provides SBOM and VEX files from version 29.0.0 to verify the applied fix.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-w9hm-4m3m-fxmm
- Osv Schema Version
- 1.4.0
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
Threat ID: 6a7573bebf8831d539d94386
Added to database: 08/07/2026, 05:57:18 UTC
Last enriched: 08/07/2026, 06:26:32 UTC
Last updated: 08/08/2026, 01:31:35 UTC
Views: 35
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.