MediumGHSA-3j7m-hmh3-9jmpCVE-2016-1000237

Cross-Site Scripting in sanitize-html

Published 16 Apr 2020 · Updated 8 Nov 2023

Affected package

Affected
<1.4.3
Fixed in
1.4.3
Update to the fixed version for your release line, for example:npm install sanitize-html@1.4.3

Details

Affected versions of sanitize-html do not sanitize input recursively, which may allow an attacker to execute arbitrary Javascript.

Recommendation

Update to version 1.4.3 or later.

Is GHSA-3j7m-hmh3-9jmp in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected sanitize-html, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.