HFS user adding a "web link" in HFS is vulnerable to "target=_blank" exploit
- Severity:
- Low
Description
When adding a “web link” to the HFS virtual filesystem, the frontend opens it with target="_blank" but without the rel="noopener noreferrer" attribute. This allows the opened page to use the window.opener property to change the location of the original HFS tab.
Recommendation
Update the hfs package to the latest compatible version. Followings are version details:
- Affected version(s): <= 0.57.9
- Patched version(s): 0.57.10
References
Related Issues
- Twitter-Post-Fetcher vulnerable to Use of Web Link to Untrusted Target with window.opener Access - CVE-2018-25058
- Unsanitized user controlled input in module generation - Vulnerability
- Vega vulnerable to arbitrary code execution when clicking href links - Vulnerability
- Eta vulnerable to Code Injection via templates rendered with user-defined data - CVE-2022-25967
- Tags:
- npm
- hfs
Anything's wrong? Let us know Last updated on August 12, 2025