Official Top 10 selection
CVE-2024-4367 - Arbitrary JavaScript execution in PDF.js
PDF.js compiles each glyph's drawing commands into a JavaScript function body and inserts the font matrix values unquoted, but a PDF font dictionary can supply its own matrix holding a string instead of numbers. Merely opening a crafted PDF runs arbitrary JavaScript, as XSS in sites embedding the library and as native code execution in unsandboxed Electron apps.
Preserved copies · Thomas Rinsma · Original publication ↗
Record
- Researcher
- Thomas Rinsma
- Published by
- codeanlabs
- Date
- Format
- Advisory
- Topic
- Server
In the archive
- Ranked #7 in the 2024 Top 10 Web Hacking Techniques · Open this archive record
Announcement provenance and preserved copies
PortSwigger Research · Source identity checked 2026-11-18; live availability may change. Historical material does not establish that nominations or voting are open.
Official results · Preserved results (PDF)
Official nomination material
Related sources
- PDF.js proof-of-concept PDF
Author not stated
External source · no preserved copy
- React-PDF security update
Author not stated
External source · no preserved copy
- PDF.js affected-version analysis
Author not stated
External source · no preserved copy
Tags
This page is the archive's own catalogue record. The research is the work of Thomas Rinsma, first published at the original source. Preserved copies are kept so the citation survives its host.