CVE-2019-25155:
DOMPurify Open Redirect vulnerability
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.47482%
CWE
Published
11/14/2023
Updated
11/15/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
dompurify | npm | < 1.0.11 | 1.0.11 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the demo's afterSanitizeElements
hook in hooks-target-blank-demo.html
. This hook added 'target="_blank"' to links but did not include the 'rel="noopener noreferrer"' attribute, which is critical to prevent reverse tabnabbing. The patch explicitly adds this attribute in the same hook, confirming the vulnerable code location. The core DOMPurify
library is not inherently vulnerable; the issue was specific to the demo's example implementation.