CVE-2024-25676: ViewerJS · Open Redirect
Source CVE Database V5
Not known to be exploited · CVSS 4.7 Medium.
Data as of 26 Oct 2026, 17:16 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 25% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 1 May 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
npmviewerjspkg:npm/viewerjsOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
- Immediate mitigation involves auditing all web applications and portals for the presence of ViewerJS 0.5.8 or earlier versions.
- If ViewerJS is in use, restrict or sanitize all user-controllable URL parameters that influence content loading to prevent injection of malicious URLs.
- Implement Content Security Policy (CSP) headers to restrict the domains from which resources can be loaded, thereby limiting the impact of out-of-band resource loading.
- Employ URL validation and whitelist approaches to ensure only trusted URLs are processed by the ViewerJS component.
- Educate users to recognize suspicious redirects and avoid clicking on unexpected links.
- Monitor web server logs for unusual redirect patterns or external resource requests indicative of exploitation attempts.
- Engage with the ViewerJS community or maintainers to track the release of official patches or updates addressing this vulnerability and plan prompt upgrades.
- Where feasible, consider alternative document viewers with stronger security postures until a fix is available.
- For internal applications, restrict access to trusted networks and implement network segmentation to reduce SSRF impact.
Description
An issue was discovered in ViewerJS 0.5.8. A script from the component loads content via URL TAGs without properly sanitizing it. This leads to both open redirection and out-of-band resource loading.