express-xss-sanitizer vulnerable to Prototype Pollution via allowedTags attribute
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| npm package | express-xss-sanitizer | < 1.1.3 | 1.1.3 |
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://github.com/AhmedAdelFahim/express-xss-sanitizer
- https://runkit.com/embed/w306l6zfm7tu
- https://security.snyk.io/vuln/SNYK-JS-EXPRESSXSSSANITIZER-3027443
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N- Weakness (CWE)
CWE-1321- Platform
- npm
- Package
express-xss-sanitizer- Disclosed
- 27.09.2022
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-grjp-4jmr-mjcw - CC BY 4.0
Vulnerability history: express-xss-sanitizer
All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 3
- First → latest
- 09.2022 03.2026
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- High 1
- Medium 2
Disclosures per year
- 2022: 1
- 2023: 0
- 2024: 0
- 2025: 1
- 2026: 1
-
express-xss-sanitizer vulnerable to Prototype Pollution via allowedTags attribute this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.