Medium, CVSS 6.1npmAmendedPublished
Cross-Site Scripting in shave
CVE-2019-12313 · GHSA-gh4g-3gm9-5wrq
- Affected
- npm shave < 2.5.3
- Fixed in
- 2.5.3· Vendor fix available
- Issue
- Versions of shave prior to 2.5.3 are vulnerable to Cross-Site Scripting. The shave package overwrites HTML elements and in doing so fails to properly encode the output. If encoded HTML input is passed into shave the output will be decoded which may lead to Cross-Site Scripting. Recommendation Upgrade to version 2.5.3 or later.
Recommended action: Upgrade to 2.5.3 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.