CVE-2022-21169
MEDIUM 6.1CVSS 3.1express-xss-sanitizer vulnerable to Prototype Pollution via allowedTags attribute
The package express-xss-sanitizer before 1.1.3 are vulnerable to Prototype Pollution via the allowedTags attribute, allowing the attacker to bypass xss sanitization.
- Published
- 26 Sep 2022
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-1321
- Also known as
- GHSA-grjp-4jmr-mjcw
- Sources
- NVDJSONOSV GHSA-grjp-4jmr-mjcwJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | express_xss_sanitizer_project | express_xss_sanitizercpe:2.3:a:express_xss_sanitizer_project:express_xss_sanitizer:*:*:*:*:*:node.js:*:* |
< 1.1.3 | 1.1.3 |
| OSV | npm | express-xss-sanitizer | < 1.1.3 | 1.1.3 |
References
- https://github.com/AhmedAdelFahim/express-xss-sanitizer/commit/3bf8aaaf4dbb1c209dcb8d87a82711a54c1ab39a · Patch, Third Party Advisory, WEB
- https://github.com/AhmedAdelFahim/express-xss-sanitizer/issues/4 · Exploit, Issue Tracking, Third Party Advisory, WEB
- https://runkit.com/embed/w306l6zfm7tu · Patch, Third Party Advisory, URL Repurposed, WEB
- https://security.snyk.io/vuln/SNYK-JS-EXPRESSXSSSANITIZER-3027443 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-21169 · ADVISORY
- https://github.com/AhmedAdelFahim/express-xss-sanitizer · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 26 Sep 2022)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 27 Sep 2022)