News for hackers. Stuff that matters.
Re:CVE-2024-4367 – Arbitrary JavaScript execution in PDF.js by ThomasRinsma on Monday May 20, 2024 @11:53AM (#40416846)
Original author here. This is indeed a bit confusing.

You are right for the case where Firefox's PDF.js is used (local or remote file in a tab or iframe). The XSS problem however is with web-applications that themselves use PDF.js. In that case, it does not run in a separate or special origin; that is a Firefox thing.

You are also right that the PDF format supports JavaScript, but that is something unrelated to this, and indeed highly sandboxed in all cases.

Re:CVE-2024-4367 – Arbitrary JavaScript execution in PDF.js by tmsbrg on Monday May 20, 2024 @11:58AM (#40416896)
Thanks for the explanation! That makes it more clear. Nice research and thanks for the reply.