HIGH
react-pdf's PDF.js vulnerable to arbitrary JavaScript execution upon opening a malicious PDF
Published May 7, 2024
7.1
HIGHCVSS 3.1
EPSS 1.06%
Description
react-pdf displays PDFs in React apps. 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. This vulnerability is fixed in 7.7.3 and 8.0.2.
Affected products
-
Affected
- < 7.7.3
- ≥ 8.0.0, < 8.0.2
No data.
-
Affected
- < 7.7.3, ≥ 8.0.0, < 8.0.2
Default status is the baseline for the product. Each version can override it (patched versions can be marked unaffected).
| Vendor | Product | Default status | Versions |
|---|---|---|---|
| Pdf.js Viewer Project | Pdf.js Viewer | unknown | Affected
|
No Red Hat product state for this CVE.
react-pdf
npm
Introduced 0 Fixed 7.7.3react-pdf
npm
Introduced 8.0.0 Fixed 8.0.2
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| npm | react-pdf | 0 | 7.7.3 |
| npm | react-pdf | 8.0.0 | 8.0.2 |
Remediation
No remediation recorded yet.
Weaknesses (1)
References (9)
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-1513 Advisory
- https://github.com/advisories/GHSA-87hq-q4gp-9wr4 Advisory
- https://github.com/mozilla/pdf.js/commit/85e64b5c16c9aaef738f421733c12911a441cec6 x_refsource_MISC
- https://github.com/mozilla/pdf.js/pull/18015 x_refsource_MISC
- https://github.com/mozilla/pdf.js/security/advisories/GHSA-wgrm-67xf-hhpq x_refsource_MISC
- https://github.com/wojtekmaj/react-pdf/commit/208f28dd47fe38c33ce4bac4205b2b0a0bb207fe x_refsource_MISC
- https://github.com/wojtekmaj/react-pdf/commit/671e6eaa2e373e404040c13cc6b668fe39839cad x_refsource_MISC
- https://github.com/wojtekmaj/react-pdf/security/advisories/GHSA-87hq-q4gp-9wr4 x_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2024-34342
Change history (0)
No recorded changes yet.
Sources
CVE.org / MITRE
Status PUBLISHED
Assigner GitHub_M
Published May 7, 2024
Updated Aug 2, 2024
Reserved May 2, 2024
Link CVE-2024-34342
CISA Vulnrichment
Updated May 7, 2024
Red Hat
No data
GitHub
Link GHSA-87HQ-Q4GP-9WR4