CVE-2021-27517: Foxit PDF SDK For Web through 7.5.0 allows XSS
CVE-2021-27517 is a medium-severity flaw (CVSS 6.1) affecting phantompdf, reader. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
Foxit PDF SDK For Web through 7.5.0 allows XSS. There is arbitrary JavaScript code execution in the browser if a victim uploads a malicious PDF document containing embedded JavaScript code that abuses app.alert (in the Acrobat JavaScript API).
Why this priority
- No elevated risk signals yet
A fixed release or distro patch exists.
Risk facts
| CVSS score | 6.1 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | Required |
| EPSS exploit chance | 0.8% (top 44%) |
| CISA exploited list | No |
| Weakness | CWE-79 |
| Published | 2021-07-20 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2021-27517?
phantompdf: upgrade to newer than 10.1.3.37598; reader: upgrade to newer than 10.1.3.37598. Exact commands for each OS are on this page.
Is CVE-2021-27517 being exploited?
CVE-2021-27517 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2021-27517 affect?
CVE-2021-27517 affects phantompdf, reader. Severity is medium (CVSS 6.1). Foxit PDF SDK For Web through 7.5.0 allows XSS. There is arbitrary JavaScript code execution in the browser if a victim uploads a malicious PDF document containing embedded JavaScript code that abuses app.alert (in the Acrobat JavaScript AP
How urgent is CVE-2021-27517?
Priority 35/100. No elevated risk signals yet.
Software pages
Related CVEs
- CVE-2022-25641 MEDIUM 5.5 UPGRADE UPGRADE Foxit PDF Reader before 11.2.2 and PDF Editor before 11.2.2, and PhantomPDF before 10.1.8, mishandle cross-ref
- CVE-2021-41785 HIGH 7.8 UPGRADE UPGRADE Foxit PDF Reader before 11.1 and PDF Editor before 11.1, and PhantomPDF before 10.1.6, allow attackers to trig
- CVE-2021-41784 HIGH 7.8 UPGRADE UPGRADE Foxit PDF Reader before 11.1 and PDF Editor before 11.1, and PhantomPDF before 10.1.6, allow attackers to trig
- CVE-2021-41783 HIGH 7.8 UPGRADE UPGRADE Foxit PDF Reader before 11.1 and PDF Editor before 11.1, and PhantomPDF before 10.1.6, allow attackers to trig
- CVE-2021-41782 HIGH 7.8 UPGRADE UPGRADE Foxit PDF Reader before 11.1 and PDF Editor before 11.1, and PhantomPDF before 10.1.6, allow attackers to trig