QID 983081
QID 983081: Nodejs (npm) Security Update for sanitize-html (GHSA-xc6g-ggrc-qq4r)
Affected versions of `sanitize-html` are vulnerable to cross-site scripting when allowedTags includes at least one `nonTextTag`.
## Proof of Concept
```
var sanitizeHtml = require('sanitize-html');
var dirty = '!<textarea></textarea><svg/onload=prompt`xs`></textarea>!';
var clean = sanitizeHtml(dirty, {
allowedTags: [ 'textarea' ]
});
console.log(clean);
// !<textarea></textarea><svg/onload=prompt`xs`></textarea>!
```
## Recommendation
Update to version 1.11.4 or later.
Successful exploitation of this vulnerability may affect the confidentiality, integrity, and availability of the targeted user.
Solution
Customers are advised to refer to GHSA-xc6g-ggrc-qq4r for updates pertaining to this vulnerability.
Vendor References
- GHSA-xc6g-ggrc-qq4r -
github.com/advisories/GHSA-xc6g-ggrc-qq4r
CVEs related to QID 983081
Software Advisories
| Advisory ID | Software | Component | Link |
|---|---|---|---|
| GHSA-xc6g-ggrc-qq4r | sanitize-html |
|