cve/2024/CVE-2024-34342.md
2024-06-07 04:52:01 +00:00

20 lines
999 B
Markdown

### [CVE-2024-34342](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-34342)
![](https://img.shields.io/static/v1?label=Product&message=react-pdf&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=%3D%20%3C%207.7.3%20&color=brighgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-79%3A%20Improper%20Neutralization%20of%20Input%20During%20Web%20Page%20Generation%20('Cross-site%20Scripting')&color=brighgreen)
### 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.
### POC
#### Reference
No PoCs from references.
#### Github
- https://github.com/GhostTroops/TOP
- https://github.com/LOURC0D3/CVE-2024-4367-PoC
- https://github.com/fkie-cad/nvd-json-data-feeds