GitHub Advisoryadvisory · npm
GHSA-h6mq-3cj6-h738 Reverse Tabnabbing in showdown
LOW
Official page ↗
- Ecosystem
- npm
- Packages
- showdown
- Severity
- Low
- CVSS vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N
- Weaknesses
- CWE-1022
- Reviewed
- 2020-08-31
Affected packages
• npm showdown: < 1.9.1 → fixed in 1.9.1
Description
Versions of `showdown` prior to 1.9.1 are vulnerable to Reverse Tabnabbing. The package uses `target='_blank'` in anchor tags, allowing attackers to access `window.opener` for the original page when opening links. This is commonly used for phishing attacks.
Recommendation
Upgrade to version 1.9.1 or later.
Related
Weakness · CWE (1)
- CWE-1022 Use of Web Link to Untrusted Target with window.opener Access weakness