CVE-2017-16016
published 2018-06-04CVE-2017-16016: Sanitize-html is a library for scrubbing html input of malicious values. Versions 1.11.1 and below are vulnerable to cross site scripting (XSS) in certain…
PriorityP423medium6.1CVSS 3.0
AVNACLPRNUIRSCCLILAN
EPSS
1.36%
68.2th percentile
Sanitize-html is a library for scrubbing html input of malicious values. Versions 1.11.1 and below are vulnerable to cross site scripting (XSS) in certain scenarios: If allowed at least one nonTextTags, the result is a potential XSS vulnerability.
Affected
4 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| apostrophecms | sanitize-html | >= 0 < 1.11.4 | 1.11.4 |
| debian | node-sanitize-html | — | — |
| hackerone | sanitize-html_node_module | — | — |
| punkave | sanitize-html | <= 1.11.1 | — |
CVSS provenance
nvdv3.06.1MEDIUMCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
nvdv2.04.3MEDIUMAV:N/AC:M/Au:N/C:N/I:P/A:N
vendor_debian6.1LOW
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Debian
CVE-2017-16016: node-sanitize-html - Sanitize-html is a library for scrubbing html input of malicious values. Version...
vendor_debian·2017·CVSS 6.1
CVE-2017-16016 [MEDIUM] CVE-2017-16016: node-sanitize-html - Sanitize-html is a library for scrubbing html input of malicious values. Version...
Sanitize-html is a library for scrubbing html input of malicious values. Versions 1.11.1 and below are vulnerable to cross site scripting (XSS) in certain scenarios: If allowed at least one nonTextTags, the result is a potential XSS vulnerability.
Scope: local
bookworm: resolved
forky: resolved
sid: resolved
trixie: resolved
OSV
Cross-Site Scripting in sanitize-html
osv·2018-11-09
CVE-2017-16016 [MEDIUM] Cross-Site Scripting in sanitize-html
Cross-Site Scripting in sanitize-html
Affected versions of `sanitize-html` are vulnerable to cross-site scripting when allowedTags includes at least one `nonTextTag`.
## Proof of Concept
```js
var sanitizeHtml = require('sanitize-html');
var dirty = '! !';
var clean = sanitizeHtml(dirty, {
allowedTags: [ 'textarea' ]
});
console.log(clean);
// !!
```
## Recommendation
Update to version 1.11.4 or later.
GHSA
Cross-Site Scripting in sanitize-html
ghsa·2018-11-09
CVE-2017-16016 [MEDIUM] CWE-79 Cross-Site Scripting in sanitize-html
Cross-Site Scripting in sanitize-html
Affected versions of `sanitize-html` are vulnerable to cross-site scripting when allowedTags includes at least one `nonTextTag`.
## Proof of Concept
```js
var sanitizeHtml = require('sanitize-html');
var dirty = '! !';
var clean = sanitizeHtml(dirty, {
allowedTags: [ 'textarea' ]
});
console.log(clean);
// !!
```
## Recommendation
Update to version 1.11.4 or later.
No detection rules found.
No public exploits indexed.
https://github.com/punkave/sanitize-html/commit/5d205a1005ba0df80e21d8c64a15bb3accdb2403https://github.com/punkave/sanitize-html/issues/100https://nodesecurity.io/advisories/154https://github.com/punkave/sanitize-html/commit/5d205a1005ba0df80e21d8c64a15bb3accdb2403https://github.com/punkave/sanitize-html/issues/100https://nodesecurity.io/advisories/154
2018-06-04
Published