GitHub Advisoryadvisory · npm

GHSA-gh4g-3gm9-5wrq Cross-Site Scripting in shave

MEDIUM Published 2019-05-29 Modified 2021-08-04 Official page ↗
Aliases
CVE-2019-12313
Ecosystem
npm
Packages
shave
Severity
Moderate
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weaknesses
CWE-79
Reviewed
2019-05-29

Affected packages

• npm shave: < 2.5.3 → fixed in 2.5.3

Description

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.

Related

Alias · CVE (1)

  • CVE-2019-12313 XSS exists in Shave before 2.5.3 because output encoding is mishandled during the overwrite of an HTML element. vulnerability

Weakness · CWE (1)

  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References