All reports
High

PDF.js vulnerable to arbitrary JavaScript execution upon opening a malicious PDF

Affected versions

Affected versions
<= 4.1.392
Fixed version
4.2.67
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
<=1.15.5
Fixed version
1.15.6
Affected versions
<=1.3.14
Fixed version
1.3.15
Affected versions
<=3.6
Fixed version
3.6.1
WordPressembedpress
Affected versions
<=4.0.2
Fixed version
4.0.3
WordPresspdf-embedder
Affected versions
<=4.7.1
Fixed version
4.8.0
WordPresspdf-poster
Affected versions
<=2.1.21
Fixed version
2.1.22
Affected versions
<=2.9.3
Fixed version
Not reported
Affected versions
<=1.3.2
Fixed version
Not reported
Affected versions
<=2.1.8.1
Fixed version
2.2
WordPresstainacan
Affected versions
<=0.21.5
Fixed version
0.21.6
Affected versions
<=2.7
Fixed version
2.8

Exploitation

CVE-2024-4367

Probability of exploitation in the next 30 days: 70.66%

FIRST EPSS · 2026-11-19

Description

Impact

If pdf.js is used to load a malicious PDF, and PDF.js is configured with isEvalSupported set to true (which is the default value), unrestricted attacker-controlled JavaScript will be executed in the context of the hosting domain.

Patches

The patch removes the use of eval: https://github.com/mozilla/pdf.js/pull/18015

Workarounds

Set the option isEvalSupported to false.

References

https://bugzilla.mozilla.org/show_bug.cgi?id=1893645

Links

Credits

  • ThomasRinsma
  • Colin Xu
  • James Myers (ConfidenceRemainsHigh)
  • Codean Labs

Data rights and licenses

Wordfence

Copyright 2012-2026 Defiant Inc.

Defiant hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute this software vulnerability information. Any copy of the software vulnerability information you make for such purposes is authorized provided that you include a hyperlink to this vulnerability record and reproduce Defiant's copyright designation and this license in any such copy.

License terms

Copyright 1999-2026 The MITRE Corporation

CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE®). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy.

License terms