CVE-2022-25854: Cross-Site Scripting (XSS) in @yaireo/tagify
Summary
CVE-2022-25854: tagify can pass a malicious placeholder to initiate the cross-site scripting (XSS) payload. Affects @yaireo/tagify versions < 4.9.8. Fixed in 4.9.8. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The @yaireo/tagify package is an npm package used for rendering UI components inside input or text fields. It provides functionality for creating tags and managing user input. The package is vulnerable to a cross-site scripting (XSS) attack when a malicious placeholder value is passed to it.
Vulnerability Detail
The vulnerability in @yaireo/tagify allows an attacker to pass a malicious placeholder value, which triggers a cross-site scripting (XSS) payload. This can lead to the execution of arbitrary code in the context of the user's browser, potentially compromising sensitive information or performing unauthorized actions. The vulnerability has a CVSS score of 6.1, indicating a moderate severity level.
How To Fix
Minimum fixed version
4.9.8
This is the first release that contains the fix.
npm install @yaireo/tagify@4.9.8
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no known workaround for this vulnerability. It is essential to update the package to the fixed version to mitigate the risk of XSS attacks.
Conclusion
The @yaireo/tagify package is vulnerable to a cross-site scripting (XSS) attack. To mitigate this vulnerability, it is crucial to update the package to version 4.9.8 or later. For further support on vulnerability remediation, contact DevNack.com.
See every vulnerability recorded for @yaireo/tagify →
FAQ
@yaireo/tagify is an npm package used for rendering UI components inside input or text fields. It provides functionality for creating tags and managing user input.
Cross-site scripting (XSS) is a type of security vulnerability that allows attackers to inject malicious scripts into web pages viewed by other users. This can lead to the execution of arbitrary code in the context of the user's browser.
The vulnerability in @yaireo/tagify allows an attacker to execute arbitrary code in the user's browser, potentially compromising sensitive information or performing unauthorized actions.
To fix this vulnerability, update the @yaireo/tagify package to version 4.9.8 or later. This version includes a fix for the XSS vulnerability.
There is no known workaround for this vulnerability. It is essential to update the package to the fixed version to mitigate the risk of XSS attacks.