ADVISORIES

GitHub Advisory Database

GHSA-gh4g-3gm9-5wrq

Cross-Site Scripting in shave

Moderate CVE-2019-12313

Details

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.

Affected packages

EcosystemPackageAffected versions
npmshave
All versions before 2.5.3 (fixed in 2.5.3)

References