Repository navigation
Adds a test case for a 2026 PDF.js vulnerability. 70 PDF generators plus the SVG case.
Added
-
test49.pdf— CVE-2026-16633, the PDF.js scripting-sandbox bridge. Document JavaScript recovers the rawFieldthrough the scripting API proxy's inheritedvalueOf, then uses its private_send()to store a forged annotation editor whose comment rich text the viewer renders as DOM.It is a detection probe: the forged rich text fetches a remote resource so your Collaborator host sees a hit. It carries no script-execution payload.
Validated against two real builds rather than by inspection:
Build CSP Callback pdfjs-dist 6.1.200 none fires (obfuscation 0 and 4) pdfjs-dist 6.2.108 none none pdfjs-dist 6.1.200 stock viewer.htmlblocked by img-src 'self'Under a CSP the forged DOM is still built and only the outbound request is stopped, so a CSP mitigates exfiltration here rather than injection.
Affects pdfjs-dist 5.6.205–6.2.107. Needs
enableScripting(the default), the comment feature enabled, and no CSP restrictingimg-src; the trigger is the reader opening the forged comment. Firefox ≥ 153 is unaffected because of its own CSP change.
Changed
- Obfuscation level 4 now treats a payload containing
pdfjs_internal_editor_as browser-targeted, so it gets theString.fromCharCodewrapper instead of Acrobat'sutil.streamFromString, which PDF.js does not implement. Without this, level 4 silently broke test49 under PDF.js. - The README banner is served from
docs/in this repository instead of being hot-linked from an external host.
$ python3 malicious-pdf.py --version
malicious-pdf.py 1.1.0
See CHANGELOG.md for the full list.