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.3Details
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
- Advisorynvd.nist.gov/vuln/detail/CVE-2016-1000237
- Linkgithub.com/apostrophecms/sanitize-html/issues/29
- Linkgithub.com/punkave/sanitize-html/issues/29
- Linkgithub.com/apostrophecms/sanitize-html/commit/762fbc7bba389f3f789cc291c1eb2b64f60f2caf
- Linkraw.githubusercontent.com/distributedweaknessfiling/cvelist/master/2016/1000xxx/CVE-2016-1000237.json
- Linkwww.npmjs.com/advisories/135
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.