Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XSS problem #1879

Closed
zmj888 opened this issue Dec 18, 2024 · 1 comment
Closed

XSS problem #1879

zmj888 opened this issue Dec 18, 2024 · 1 comment

Comments

@zmj888
Copy link

zmj888 commented Dec 18, 2024

If upload a pdf file which contains xss js content. Will show alert like this
xx

@kartik-v
Copy link
Owner

kartik-v commented Jan 23, 2025

Set content preview to off and use icon previews if you really want to be safe and protect from XSS and bad content. Note that if you enable thumbnail previews for PDF - then PDF rendering is done not by the plugin but by browser (plugin) or via the library PDFJS (so it needs to be checked with those). For HTML content previews however, the plugin uses its capability to render safe HTML.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants