Skip to content

chore: update pdfjs-dist - #107

Closed
mzl-md wants to merge 1 commit into
moshensky:masterfrom
mzl-md:update-pdfjs-dist
Closed

mzl-md wants to merge 1 commit into
moshensky:masterfrom
mzl-md:update-pdfjs-dist

Conversation

@mzl-md

@mzl-md mzl-md commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Dependabot shows alarm PDF.js: Arbitrary JavaScript execution upon opening a malicious PDF for the older version of pdfjs-dist:

Impact
If PDF.js is used to load a malicious PDF, and PDF.js is configured with enableScripting set to true (which is the default value) and no CSP for disallowing script-src, unrestricted attacker-controlled JavaScript will be executed in the context of the hosting domain.

Patches
Workarounds
Set enableScripting to false or set a CSP.

References
GHSA-hq66-cqwq-w95j
https://bugzilla.mozilla.org/show_bug.cgi?id=2055885

@mzl-md

mzl-md commented Aug 27, 2026

Copy link
Copy Markdown
Contributor Author

Hi @moshensky, I can’t determine why the tests are failing. A fix would still be greatly appreciated. Could you please take a look?

@moshensky

Copy link
Copy Markdown
Owner

Hi @mzl-md,

I've updated dependencies and released a new version. Please check the changelog.

@mzl-md

mzl-md commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

Thank you very much!

@mzl-md mzl-md closed this Sep 1, 2026
@mzl-md
mzl-md deleted the update-pdfjs-dist branch September 1, 2026 09:40
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

Successfully merging this pull request may close these issues.

2 participants