Malicious PDF can inject JavaScript into PDF Viewer
        
  High severity
        
          GitHub Reviewed
      
        Published
          May 14, 2022 
          to the GitHub Advisory Database
          •
          Updated May 28, 2024 
      
  
Package
Affected versions
>= 2.0.0, < 2.0.550
      < 1.10.100
  Patched versions
2.0.550
      1.10.100
  Description
        Published by the National Vulnerability Database
      Jun 11, 2018 
    
  
        Published to the GitHub Advisory Database
      May 14, 2022 
    
  
        Reviewed
      May 28, 2024 
    
  
        Last updated
      May 28, 2024 
    
  
The PDF viewer does not sufficiently sanitize PostScript calculator functions, allowing malicious JavaScript to be injected through a crafted PDF file. This JavaScript can then be run with the permissions of the PDF viewer by its worker. This vulnerability affects Firefox ESR < 52.8, Firefox < 60 and PDF.js < 2.0.550.
References