Do not report a vulnerability in a public issue.
Use the private report form of GitHub: open the Security tab of this repository and click Report a vulnerability. Tell what the problem is, how to make it occur, and which browser you use.
- The reader runs completely in the browser. It has no server and no user accounts.
- A note is Markdown. The reader changes it into HTML with marked, and then it removes unsafe HTML with DOMPurify.
- PDF.js shows the PDF files. The reader does not run JavaScript that is in a PDF file.
- The reader keeps data in IndexedDB of the browser. This data belongs to the origin of the site, so websites on other origins cannot read it.
On GitHub Pages, all project sites of one account share one origin (
https://<username>.github.io). Pages on that origin can read the same IndexedDB data. Publish only trusted code there, or use a custom domain for the reader. - The libraries load from jsDelivr with exact versions. If you need more control, copy the libraries into the repository.
Only the latest version on the main branch gets security fixes.