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.
// cvss v3.0 vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None
Checked 2026-10-04 at 01:11 UTC. The most recent advisory here was published 2019-05-29. Updated continuously from NVD, GHSA, OSV and CNA feeds.