Vulnerability library
Security checkJanuary 09, 2023

Cross-Site Scripting in shave

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpmshave

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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

Update the shave package to the latest compatible version. Followings are version details:

  • Affected version(s): < 2.5.3
  • Patched version(s): 2.5.3

References

Could your website be exposed too?

SmartScanner can check your website for Cross-Site Scripting in shave and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated January 09, 2023