Advisory

GHSA-7jg2-jgv3-fmr4

Also known as: CVE-2018-5158

Summary

Malicious PDF can inject JavaScript into PDF Viewer

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-05-14 01:22 UTC
Modified
2024-05-28 21:12 UTC

Affected packages and fixes

pdfjs-dist

npm · All systems

Affected

  • introduced 2.0.0, fixed 2.0.550 (semver)

Fixed versions

2.0.550

Fix

pdfjs-dist

npm · All systems

Affected

  • introduced 0, fixed 1.10.100 (semver)

Fixed versions

1.10.100

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences