Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2021-27517: Foxit PDF SDK For Web through 7.5.0 allows XSS

35
Routine
MEDIUM 6.1UPGRADEUPGRADE

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 score6.1 (Medium)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionRequired
EPSS exploit chance0.8% (top 44%)
CISA exploited listNo
WeaknessCWE-79
Published2021-07-20
Last modified2026-06-17
Publisher (CNA): MITRE · Vendor: foxit

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

foxit phantompdf UPGRADE
Affected: <= 9.7.5.29616 · >= 10.0.0.0 and <= 10.1.3.37598
Fixed in: newer than 10.1.3.37598
Safe to downgrade to: a release before 10.0.0.0
1. Check installed version
apt-cache policy phantompdf || rpm -q phantompdf || phantompdf --version
2. UPGRADE to newer than 10.1.3.37598 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade phantompdf
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade phantompdf
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
3. If no update is available yet, DOWNGRADE to a release before 10.0.0.0 (Debian / Ubuntu)
apt-cache madison phantompdf sudo apt install phantompdf=<VERSION_BEFORE_10.0.0.0> sudo apt-mark hold phantompdf
3. If no update is available yet, DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list phantompdf sudo dnf downgrade phantompdf-<VERSION_BEFORE_10.0.0.0> sudo dnf versionlock add phantompdf
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
foxit reader UPGRADE
Affected: <= 10.1.3.37598
Fixed in: newer than 10.1.3.37598
Safe to downgrade to: no unaffected older release
1. Check installed version
apt-cache policy reader || rpm -q reader || reader --version
2. UPGRADE to newer than 10.1.3.37598 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade reader
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade reader
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
Verify at the official source NVD · CVE Program · Report a problem with this page
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

Adobe Acrobat vulnerabilities

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.