ahmedadelfahim/express-xss-sanitizer · Security
express-xss-sanitizer vulnerable to Prototype Pollution via allowedTags attribute
- GHSA ID
- GHSA-grjp-4jmr-mjcw
- CVE ID
- CVE-2022-21169
- Severity
- medium
- Published
- Updated
- CVSS
- 6.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CVSS v3
- 6.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Description
The package express-xss-sanitizer before 1.1.3 is vulnerable to Prototype Pollution via the allowedTags attribute, allowing the attacker to bypass xss sanitization.
CWEs
- CWE-1321 · Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-21169 ↗
- https://github.com/AhmedAdelFahim/express-xss-sanitizer/issues/4 ↗
- https://github.com/AhmedAdelFahim/express-xss-sanitizer/commit/3bf8aaaf4dbb1c209dcb8d87a82711a54c1ab39a ↗
- https://runkit.com/embed/w306l6zfm7tu ↗
- https://security.snyk.io/vuln/SNYK-JS-EXPRESSXSSSANITIZER-3027443 ↗
- https://github.com/advisories/GHSA-grjp-4jmr-mjcw ↗